rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=3f7d535f5c7f7107f8ca298be10eb421d5fb8573

commit 3f7d535f5c7f7107f8ca298be10eb421d5fb8573
Author: Andrii Kroitor <an.kroi...@samsung.com>
Date:   Wed Dec 9 16:46:33 2015 +0200

    editor: fix part_item_add
---
 src/bin/editor/editor_part.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/bin/editor/editor_part.c b/src/bin/editor/editor_part.c
index c92422a..325da23 100644
--- a/src/bin/editor/editor_part.c
+++ b/src/bin/editor/editor_part.c
@@ -473,7 +473,6 @@ editor_part_item_append(Evas_Object *edit_object, Change 
*change, Eina_Bool merg
      }
    if (!edje_edit_part_item_append(edit_object, part_name, item_name, 
source_group))
      return false;
-   _editor_project_changed();
 
    /* fixing incorrect default item position */
    if (!edje_edit_part_item_position_row_set(edit_object, part_name, 
item_name, 0))
@@ -481,6 +480,9 @@ editor_part_item_append(Evas_Object *edit_object, Change 
*change, Eina_Bool merg
    if (!edje_edit_part_item_position_col_set(edit_object, part_name, 
item_name, 0))
      return false;
 
+   editor_save(edit_object);
+   _editor_project_changed();
+
    event_info.part_name = eina_stringshare_add(part_name);
    event_info.item_name = eina_stringshare_add(item_name);
    if (!_editor_signals_blocked) evas_object_smart_callback_call(ap.win, 
SIGNAL_EDITOR_PART_ITEM_ADDED, (void *)&event_info);

-- 


Reply via email to