forked from enlightenment/efl
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:
parent
549fb6019e
commit
be6f406e54
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue