elm_genlist: Handle prev_focused_item if it get deleted

Summary:
Assign the prev_focused_item to NULL it get deleted

Reviewers: seoz, raster

Differential Revision: https://phab.enlightenment.org/D635
This commit is contained in:
nirajkr 2014-03-16 02:35:10 +09:00 committed by Daniel Juyung Seo
parent 549fb6019e
commit be6f406e54
1 changed files with 2 additions and 0 deletions

View File

@ -3235,6 +3235,8 @@ _elm_genlist_item_del_not_serious(Elm_Gen_Item *it)
sd->last_focused_item = NULL;
if (sd->focused_item == (Elm_Object_Item *)it)
sd->focused_item = NULL;
if (sd->prev_focused_item == (Elm_Object_Item *)it)
sd->prev_focused_item = NULL;
if (sd->last_selected_item == (Elm_Object_Item *)it)
sd->last_selected_item = NULL;