elm genlist: Remove item from moved_item when an item is deleted and set effect mode...
authorseoz <seoz@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 20 Apr 2012 10:50:46 +0000 (10:50 +0000)
committerseoz <seoz@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 20 Apr 2012 10:50:46 +0000 (10:50 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@70359 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elm_genlist.c

index be96aff..824334e 100644 (file)
@@ -880,8 +880,10 @@ _item_del(Elm_Gen_Item *it)
              ecore_animator_del(wd->tree_effect_animator);
              wd->tree_effect_animator = NULL;
           }
+        wd->move_effect_mode = ELM_GENLIST_TREE_EFFECT_NONE;
      }
    if (wd->expanded_next_item == it) wd->expanded_next_item = NULL;
+   if (wd->move_items) wd->move_items = eina_list_remove(wd->move_items, it);
    if (it->parent)
      it->parent->item->items = eina_list_remove(it->parent->item->items, it);
    if (it->item->swipe_timer)