summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChunEon Park <hermet@hermet.pe.kr>2014-07-15 12:31:07 +0900
committerChunEon Park <hermet@hermet.pe.kr>2014-07-15 12:31:07 +0900
commit827f630d2e542f23a1458aa91600342d4bf22f77 (patch)
treeb1e88750042e148bcb8faedfa09e3a56296af31a
parentff26a69d1112936a98fd87769855bf311d2d3a81 (diff)
genlist - fix a crash.
It allows NULL focused item. let it null check.
-rw-r--r--src/lib/elm_genlist.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c
index bea993843..cdf9456e1 100644
--- a/src/lib/elm_genlist.c
+++ b/src/lib/elm_genlist.c
@@ -2778,6 +2778,7 @@ _key_action_select(Evas_Object *obj, const char *params EINA_UNUSED)
2778 Elm_Object_Item *it = NULL; 2778 Elm_Object_Item *it = NULL;
2779 2779
2780 it = elm_object_focused_item_get(obj); 2780 it = elm_object_focused_item_get(obj);
2781 if (!it) return EINA_TRUE;
2781 elm_genlist_item_expanded_set(it, !elm_genlist_item_expanded_get(it)); 2782 elm_genlist_item_expanded_set(it, !elm_genlist_item_expanded_get(it));
2782 evas_object_smart_callback_call(WIDGET(it), SIG_ACTIVATED, it); 2783 evas_object_smart_callback_call(WIDGET(it), SIG_ACTIVATED, it);
2783 2784