From: chanwook jung <jchanwook@gmail.com>
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 18 Apr 2012 09:07:36 +0000 (09:07 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 18 Apr 2012 09:07:36 +0000 (09:07 +0000)
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

src/lib/elm_genlist.c

index 98909b5..dd1842e 100644 (file)
@@ -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)