list: Reset prev_focused_item when prev_focused_item is deleted.

This is inspired by a2c680d684601d8df725e8293616c880f07d3ca2.
This commit is contained in:
Daniel Juyung Seo 2014-03-16 02:39:09 +09:00
parent be6f406e54
commit 7100cfea40
1 changed files with 2 additions and 0 deletions

View File

@ -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;