summaryrefslogtreecommitdiff
path: root/src/bin/playbacks_view.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/playbacks_view.c')
-rw-r--r--src/bin/playbacks_view.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/bin/playbacks_view.c b/src/bin/playbacks_view.c
index 9455e5a..b938454 100644
--- a/src/bin/playbacks_view.c
+++ b/src/bin/playbacks_view.c
@@ -48,13 +48,15 @@ _sink_input_removed_cb(void *data, int type EINA_UNUSED,
48 struct Playbacks_View *pv = data; 48 struct Playbacks_View *pv = data;
49 Emix_Sink_Input *ev = info; 49 Emix_Sink_Input *ev = info;
50 Elm_Object_Item *item = elm_genlist_first_item_get(pv->genlist); 50 Elm_Object_Item *item = elm_genlist_first_item_get(pv->genlist);
51 if (ev == elm_object_item_data_get(item))
52 elm_object_item_del(item);
53 51
54 while ((item = elm_genlist_item_next_get(item))) 52 if (item)
55 { 53 {
56 if (ev == elm_object_item_data_get(item)) 54 do
57 elm_object_item_del(item); 55 {
56 if (ev == elm_object_item_data_get(item))
57 elm_object_item_del(item);
58 }
59 while ((item = elm_genlist_item_next_get(item)));
58 } 60 }
59 61
60 return ECORE_CALLBACK_PASS_ON; 62 return ECORE_CALLBACK_PASS_ON;