From 66c8354bb96bfa66ab5f0e969fbff6e7c4aef290 Mon Sep 17 00:00:00 2001 From: Jaehwan Kim Date: Wed, 13 Jul 2011 17:15:41 +0900 Subject: [PATCH] [genlist] check flags in elm_genlist_item_expanded_set --- src/lib/elm_genlist.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c index 8793908..a1dce1d 100644 --- a/src/lib/elm_genlist.c +++ b/src/lib/elm_genlist.c @@ -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; -- 2.7.4