yakov pushed a commit to branch master.

http://git.enlightenment.org/tools/erigo.git/commit/?id=cfad11cb99cf40b94ad2e977a07839b23217e8e1

commit cfad11cb99cf40b94ad2e977a07839b23217e8e1
Author: Yakov Goldberg <yako...@samsung.com>
Date:   Sun Dec 6 14:58:16 2015 +0200

    Fix wrong functions call
    
    Don't need to call finalize() if memento was not added
---
 src/bin/gui/editor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/gui/editor.c b/src/bin/gui/editor.c
index cbf57e8..13f5cad 100644
--- a/src/bin/gui/editor.c
+++ b/src/bin/gui/editor.c
@@ -4097,6 +4097,7 @@ _content_reorder_from_propview(void *data, Eo *obj 
EINA_UNUSED, const Eo_Event_D
         if (wdg_obj_container_content_reorder(wdg, idx, button_dir))
           {
              memento_command_add(wdg_eid_get(wdg), MEMENTO_OBJ_CONTAINER, 
_old_container, _new_container);
+             context_memento_finalize(_active_context_get());
 
              /* Update propview. */
              _editor_wdg_selected_set(wdg);
@@ -4104,7 +4105,6 @@ _content_reorder_from_propview(void *data, Eo *obj 
EINA_UNUSED, const Eo_Event_D
           }
         obj_container_unref(_old_container);
      }
-   context_memento_finalize(_active_context_get());
    return EO_CALLBACK_CONTINUE;
 }
 

-- 


Reply via email to