yakov pushed a commit to branch master. http://git.enlightenment.org/tools/erigo.git/commit/?id=d757031590b6db0232a0a25a7c1f54a818874838
commit d757031590b6db0232a0a25a7c1f54a818874838 Author: Yakov Goldberg <yako...@samsung.com> Date: Wed Nov 25 16:47:31 2015 +0200 Fix: set mementos in proper order Reorder mementos, because order matters for updater. --- src/bin/gui/editor.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/bin/gui/editor.c b/src/bin/gui/editor.c index 587f7dd..7bf8253 100644 --- a/src/bin/gui/editor.c +++ b/src/bin/gui/editor.c @@ -4042,7 +4042,7 @@ _content_change_from_propview(void *data EINA_UNUSED, Eo *obj, const Eo_Event_De _old_container = (Object_Container *) wdg_obj_container_get((Gui_Widget *) wdg); _new_container = obj_container_copy(_old_container); - memento_command_add(wdg_eid_get(wdg), MEMENTO_OBJ_CONTAINER, _old_container, _new_container); + obj_container_ref(_old_container); wdg_obj_container_unset((Gui_Widget *) wdg); wdg_obj_container_set((Gui_Widget *) wdg, _new_container); @@ -4197,6 +4197,9 @@ _content_change_from_propview(void *data EINA_UNUSED, Eo *obj, const Eo_Event_De objtree_item_selected_set(wdg); } } + memento_command_add(wdg_eid_get(wdg), MEMENTO_OBJ_CONTAINER, _old_container, _new_container); + obj_container_unref(_old_container); + context_memento_finalize(ctx); return EO_CALLBACK_CONTINUE; --