From 36a5e7e629f3a4913d3b08913124990308894aed Mon Sep 17 00:00:00 2001 From: seoz Date: Fri, 20 Apr 2012 10:50:46 +0000 Subject: [PATCH] elm genlist: Remove item from moved_item when an item is deleted and set effect mode to none when the deleted item is an expanded_item. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@70359 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/elm_genlist.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c index be96aff..824334e 100644 --- a/src/lib/elm_genlist.c +++ b/src/lib/elm_genlist.c @@ -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) -- 2.7.4