Genlist: Set focused content as null when content is deleted 21/119121/2
authorGodly T.Alias <godlytalias@yahoo.co.in>
Wed, 15 Mar 2017 13:29:25 +0000 (18:59 +0530)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Mon, 20 Mar 2017 01:00:26 +0000 (18:00 -0700)
Change-Id: I7a3d4245b584aa1c159bd1749ce3b20fdeba1075
Signed-off-by: Godly T.Alias <godlytalias@yahoo.co.in>
src/mobile_lib/elm_genlist.c

index ef3a83587c815fe3270c8e3274bf7160461452e5..091425a54b067a89f69346f96717a333aa5b4d17 100644 (file)
@@ -335,6 +335,11 @@ _banded_item_bg_index_color_set(Elm_Gen_Item *it_top, Evas_Coord ox, Evas_Coord
 static void
 _item_content_free(Evas_Object *content)
 {
+   if (content == GL_IT(it)->wsd->focused_content)
+     {
+        elm_object_focus_set(content, EINA_FALSE);
+        GL_IT(it)->wsd->focused_content = NULL;
+     }
    // FIXME: For animation, befor del, processing edc.
    if (evas_object_smart_type_check(content, "elm_layout"))
      edje_object_message_signal_process(elm_layout_edje_get(content));