rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=864aef8690159a512a9f41d0bef962574ce98c40

commit 864aef8690159a512a9f41d0bef962574ce98c40
Author: Vitalii Vorobiov <vi.vorob...@samsung.com>
Date:   Mon Jan 18 12:41:44 2016 +0000

    property_group: fix unpleasant bug when empty combo update different combo
---
 src/bin/ui/property_group.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/bin/ui/property_group.c b/src/bin/ui/property_group.c
index 418ef41..118a7de 100644
--- a/src/bin/ui/property_group.c
+++ b/src/bin/ui/property_group.c
@@ -1835,10 +1835,10 @@ _on_target_change(void *data,
         eina_stringshare_del(old_val);
      }
 
+   evas_object_data_set(obj, COMBOBOX_TARGET, 
eina_stringshare_add(item->title));
    editor_program_target_add(pd->group->edit_object, change, false,
                              pd->attributes.program.program,
                              item->title);
-   evas_object_data_set(obj, COMBOBOX_TARGET, 
eina_stringshare_add(item->title));
    history_change_add(pd->group->history, change);
 }
 static void
@@ -1917,11 +1917,15 @@ prop_program_targets_update(Group_Prop_Data *pd)
 
    items = elm_box_children_get(pd->attributes.program.target_box);
    /* fill up with part and program list */
+   Eina_Stringshare *to_del;
    EINA_LIST_FOREACH(items, l, item)
      {
         target_combo = elm_layout_content_get(item, NULL);
         target = eina_list_data_get(targets);
         ewe_combobox_text_set(target_combo, target);
+        to_del = evas_object_data_get(target_combo, COMBOBOX_TARGET);
+        eina_stringshare_del(to_del);
+        evas_object_data_del(target_combo, COMBOBOX_TARGET);
         evas_object_data_set(target_combo, COMBOBOX_TARGET, 
eina_stringshare_add(target));
         targets = eina_list_next(targets);
      }

-- 


Reply via email to