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:33:07 +0900
commit7bc39e2b484f2638d820d420d348528a3b85c319 (patch)
tree85b9fa533293f9ede5220700eda42e82e1ead0fc
parenteb7f5d542a70b29ccc94e2207d43e073453d24df (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 880b664d8..34a2a4ef9 100644
--- a/src/lib/elm_genlist.c
+++ b/src/lib/elm_genlist.c
@@ -2776,6 +2776,7 @@ _key_action_select(Evas_Object *obj, const char *params EINA_UNUSED)
2776 Elm_Object_Item *it = NULL; 2776 Elm_Object_Item *it = NULL;
2777 2777
2778 it = elm_object_focused_item_get(obj); 2778 it = elm_object_focused_item_get(obj);
2779 if (!it) return EINA_TRUE;
2779 elm_genlist_item_expanded_set(it, !elm_genlist_item_expanded_get(it)); 2780 elm_genlist_item_expanded_set(it, !elm_genlist_item_expanded_get(it));
2780 evas_object_smart_callback_call(WIDGET(it), SIG_ACTIVATED, it); 2781 evas_object_smart_callback_call(WIDGET(it), SIG_ACTIVATED, it);
2781 2782