forked from enlightenment/efl
list: Reset prev_focused_item when prev_focused_item is deleted.
This is inspired by a2c680d684601d8df725e8293616c880f07d3ca2.
This commit is contained in:
parent
be6f406e54
commit
7100cfea40
|
@ -1674,6 +1674,8 @@ _item_del_pre_hook(Elm_Object_Item *it)
|
|||
sd->focused_item = NULL;
|
||||
if (sd->last_focused_item == (Elm_Object_Item *)it)
|
||||
sd->last_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