summaryrefslogtreecommitdiff
path: root/src/bin/sources_view.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/sources_view.c')
-rw-r--r--src/bin/sources_view.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/bin/sources_view.c b/src/bin/sources_view.c
index 80edee2..8bd883f 100644
--- a/src/bin/sources_view.c
+++ b/src/bin/sources_view.c
@@ -43,13 +43,15 @@ _source_removed_cb(void *data, int type EINA_UNUSED, void *info)
43 struct Sources_View *sv = data; 43 struct Sources_View *sv = data;
44 Emix_Source *source = info; 44 Emix_Source *source = info;
45 Elm_Object_Item *item = elm_genlist_first_item_get(sv->genlist); 45 Elm_Object_Item *item = elm_genlist_first_item_get(sv->genlist);
46 if (source == elm_object_item_data_get(item))
47 elm_object_item_del(item);
48 46
49 while ((item = elm_genlist_item_next_get(item))) 47 if (item)
50 { 48 {
51 if (source == elm_object_item_data_get(item)) 49 do
52 elm_object_item_del(item); 50 {
51 if (source == elm_object_item_data_get(item))
52 elm_object_item_del(item);
53 }
54 while ((item = elm_genlist_item_next_get(item)));
53 } 55 }
54 56
55 return ECORE_CALLBACK_PASS_ON; 57 return ECORE_CALLBACK_PASS_ON;