From: Jung Chanwook Date: Thu, 23 Feb 2012 08:42:33 +0000 (+0900) Subject: [Genlist] Fix the problem func.del is called twice when it->func.func is _elm_widget_... X-Git-Tag: REL_F_I9500_20120313_1~41 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b4a45857ee864ec4c9e5160813f69282dcf25ad2;p=framework%2Fuifw%2Felementary.git [Genlist] Fix the problem func.del is called twice when it->func.func is _elm_widget_item_del Change-Id: Ia9bd844ccb5851241829ff8300cebe7fb718e04b --- 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)