From: raster Date: Wed, 18 Apr 2012 09:07:36 +0000 (+0000) Subject: From: chanwook jung X-Git-Tag: sbs/armel/slp2-target~27^2~27 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ca2c412ccea44baa727fa40b1486fe2067ae20c3;p=framework%2Fuifw%2Felementary.git From: chanwook jung Subject: [E-devel] [Patch][Genlist] fix the bug in _elm_genlist_item_del_notserious I made a patch to fix the bug in _elm_genlist_item_del_notserious. If relcount is not 0 or walking is not 0, return. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@70291 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c index 98909b5..dd1842e 100644 --- a/src/lib/elm_genlist.c +++ b/src/lib/elm_genlist.c @@ -5897,6 +5897,9 @@ _elm_genlist_item_del_notserious(Elm_Gen_Item *it) { elm_widget_item_pre_notify_del(it); it->generation = it->wd->generation - 1; /* This means that the item is deleted */ + + if ((it->relcount > 0) || (it->walking > 0)) return; + if (it->selected) it->wd->selected = eina_list_remove(it->wd->selected, it); if (it->itc->func.del)