From fd53d320f21db1b34c1b4651750b618cee5449ec Mon Sep 17 00:00:00 2001 From: chanwook jung Date: Wed, 18 Apr 2012 09:07:36 +0000 Subject: [PATCH] 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. SVN revision: 70291 --- src/lib/elm_genlist.c | 3 +++ 1 file changed, 3 insertions(+) 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) -- 2.7.4