[elm_genlist.c] fix contact item unrealize problem
authorSeunggyun Kim <sgyun.kim@samsung.com>
Thu, 21 Mar 2013 12:06:41 +0000 (21:06 +0900)
committerSungho Kwak <sungho1.kwak@samsung.com>
Mon, 25 Mar 2013 06:34:38 +0000 (15:34 +0900)
Change-Id: I511e783af79bf8e87bdc3444c6610728375dd7d8

src/lib/elm_genlist.c

index 8526cfd..3e66140 100644 (file)
@@ -185,10 +185,6 @@ _item_cache_push(Elm_Gen_Item *it)
    Elm_Genlist_Smart_Data *sd = GL_IT(it)->wsd;
    Item_Cache *ic = NULL;
 
-#if GENLIST_FX_SUPPORT
-   if (sd->pending_del_items) return;
-#endif
-
    if (sd->item_cache_count >= sd->item_cache_max)
     {
         ic = EINA_INLIST_CONTAINER_GET(sd->item_cache->last, Item_Cache);
@@ -218,7 +214,11 @@ _item_cache_push(Elm_Gen_Item *it)
                                         _contract_signal_cb, it);
    _item_mouse_callbacks_del(it, VIEW(it));
 
+#if GENLIST_FX_SUPPORT
+   if ((it->item->nocache_once) || (it->item->nocache) || (sd->pending_del_items))
+#else
    if ((it->item->nocache_once) || (it->item->nocache))
+#endif
      {
         if (VIEW(it)) evas_object_del(VIEW(it));
         if (it->spacer) evas_object_del(it->spacer);