last_selected_item when last_selected_item is deleted.
git-svn-id: https://svn.enlightenment.org/svn/e/trunk/elementary@64031
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
Conflicts:
src/lib/elm_genlist.c
if (it) it->defer_unrealize = EINA_FALSE;
}
+_item_del_hook(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
+{
+ Elm_Genlist_Item *it = event_info;
+ if (!it) return;
+ if (it->wd->last_selected_item == it)
+ it->wd->last_selected_item = NULL;
+}
+
static void
_item_label_realize(Elm_Genlist_Item *it,
Evas_Object *target,
it->mouse_cursor = NULL;
it->expanded_depth = 0;
elm_widget_item_text_get_hook_set(it, _item_label_hook);
+ elm_widget_item_del_cb_set(it, _item_del_hook);
if (it->parent)
{