[genlist] check flags in elm_genlist_item_expanded_set
authorJaehwan Kim <jae.hwan.kim@samsung.com>
Wed, 13 Jul 2011 08:15:41 +0000 (17:15 +0900)
committerJaehwan Kim <jae.hwan.kim@samsung.com>
Wed, 13 Jul 2011 08:15:41 +0000 (17:15 +0900)
src/lib/elm_genlist.c

index 8793908..a1dce1d 100644 (file)
@@ -4487,6 +4487,7 @@ elm_genlist_item_expanded_set(Elm_Genlist_Item *it,
                               Eina_Bool         expanded)
 {
    ELM_WIDGET_ITEM_WIDTYPE_CHECK_OR_RETURN(it);
+   if (it->flags != ELM_GENLIST_ITEM_SUBITEMS) return;
    if (it->expanded == expanded) return;
    it->expanded = expanded;
    it->wd->expand_item = it;