[Genlist] Update item cache anyway
authorTae-Hwan Kim <the81.kim@samsung.com>
Thu, 11 Apr 2013 02:37:23 +0000 (11:37 +0900)
committerSungho Kwak <sungho1.kwak@samsung.com>
Sun, 14 Apr 2013 09:40:16 +0000 (18:40 +0900)
If item is not realized yet and item class update is called, it needs to
be updated item class anyway.

Change-Id: I646b4efa1eb1b5fc737b6ed88d2e5d03823cc697

src/lib/elm_genlist.c

index 4c3ba60..039a997 100644 (file)
@@ -6120,10 +6120,10 @@ elm_genlist_item_item_class_update(Elm_Object_Item *item,
    ELM_GENLIST_ITEM_CHECK_OR_RETURN(item);
    Elm_Gen_Item *it = (Elm_Gen_Item *)item;
 
-   if (!it->item->block) return;
    EINA_SAFETY_ON_NULL_RETURN(itc);
    it->itc = itc;
 
+   if (!it->item->block) return;
    it->item->nocache_once = EINA_TRUE;
 
    elm_widget_stringlist_free(it->texts);