From b4a45857ee864ec4c9e5160813f69282dcf25ad2 Mon Sep 17 00:00:00 2001 From: Jung Chanwook Date: Thu, 23 Feb 2012 17:42:33 +0900 Subject: [PATCH] [Genlist] Fix the problem func.del is called twice when it->func.func is _elm_widget_item_del Change-Id: Ia9bd844ccb5851241829ff8300cebe7fb718e04b --- src/lib/elm_genlist.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c index bbc5816..3461892 100644 --- a/src/lib/elm_genlist.c +++ b/src/lib/elm_genlist.c @@ -1516,7 +1516,6 @@ _mouse_up(void *data, it->wd->reorder_it = it->wd->reorder_rel = NULL; elm_smart_scroller_hold_set(it->wd->scr, EINA_FALSE); elm_smart_scroller_bounce_allow_set(it->wd->scr, EINA_FALSE, EINA_TRUE); - } if (it->wd->longpressed) { @@ -5981,6 +5980,8 @@ _elm_genlist_item_del_notserious(Elm_Genlist_Item *it) elm_widget_item_pre_notify_del(it); it->delete_me = EINA_TRUE; //it->generation = it->wd->generation - 1; /* This means that the item is deleted */ //upstream + + if (it->walking) return; /* func.del is called twice when it->func.func is _elm_widget_item_del*/ if (it->selected) it->wd->selected = eina_list_remove(it->wd->selected, it); if (it->itc->func.del) -- 2.7.4