genlist: fix demote issue when item still in the queue, not working properly 75/90475/4
authorSangHyeon Lee <sh10233.lee@samsung.com>
Fri, 30 Sep 2016 07:58:41 +0000 (16:58 +0900)
committerJunsuChoi <jsuya.choi@samsung.com>
Thu, 17 Nov 2016 08:07:49 +0000 (17:07 +0900)
Change-Id: Ia8123ba24cdd0ce739b4adba6f3b95bda392c219
Signed-off-by: SangHyeon Lee <sh10233.lee@samsung.com>
src/mobile_lib/elm_genlist.c

index e3524b6..e6d0d1e 100644 (file)
@@ -4802,6 +4802,12 @@ _item_move_after(Elm_Gen_Item *it,
    after->item->rel_revs = eina_list_append(after->item->rel_revs, it);
    GL_IT(it)->before = EINA_FALSE;
    if (after->item->group_item) GL_IT(it)->group_item = after->item->group_item;
+
+   if (GL_IT(it)->queued)
+     {
+        GL_IT(it)->wsd->queue = eina_list_remove(GL_IT(it)->wsd->queue, it);
+        GL_IT(it)->queued = EINA_FALSE;
+     }
    _item_queue_direct(it, NULL);
 
    evas_object_smart_callback_call(WIDGET(it), SIG_MOVED_AFTER, EO_OBJ(it));