yakov pushed a commit to branch master.

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

commit ec2fc5ea696474aa558f8850cc3be7e73d3deb89
Author: Yakov Goldberg <yako...@samsung.com>
Date:   Sun Dec 6 14:45:37 2015 +0200

    Fix wrong functions call
    
    Don't need to call finalize() and other funcs if memento was not added
---
 src/bin/gui/editor.c | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/src/bin/gui/editor.c b/src/bin/gui/editor.c
index b5173d5..cbf57e8 100644
--- a/src/bin/gui/editor.c
+++ b/src/bin/gui/editor.c
@@ -4060,13 +4060,14 @@ _content_del_from_propview(void *data, Eo *obj 
EINA_UNUSED, const Eo_Event_Descr
         wdg_parent_set(param_wdg, wdg_name_get(parent_win));
         objtree_item_selected_set(wdg);
         memento_command_add(name_id, MEMENTO_WIDGET_PARENT, wdg_eid_get(wdg), 
wdg_eid_get(parent_win));
-     }
 
-   /* Reload window when unpacking something. */
-   _editor_wdg_selected_set(wdg);
-   objtree_item_selected_set(wdg);
+        /* Reload window when unpacking something. */
+        _editor_wdg_selected_set(wdg);
+        objtree_item_selected_set(wdg);
+
+        context_memento_finalize(ctx);
+     }
 
-   context_memento_finalize(ctx);
    return EO_CALLBACK_CONTINUE;
 }
 

-- 


Reply via email to