summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHermet Park <hermet@hermet.pe.kr>2016-02-13 01:43:56 +0900
committerHermet Park <hermet@hermet.pe.kr>2016-02-13 01:43:56 +0900
commit7d77c0572dfcee970079eda515ae1ac4075c4f58 (patch)
tree4c305f9bf79569e392325f7ab8195aa85df9afd0
parentc0a0d801953593e51cfbf93faae98156cd55f3e4 (diff)
widget: don't access a widget focus if the object is not a widget.
-rw-r--r--src/lib/elm_widget.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/elm_widget.c b/src/lib/elm_widget.c
index efcbc88a7..fd00284bd 100644
--- a/src/lib/elm_widget.c
+++ b/src/lib/elm_widget.c
@@ -413,6 +413,7 @@ _if_focused_revert(Evas_Object *obj,
413 Evas_Object *child; 413 Evas_Object *child;
414 EINA_LIST_FOREACH(sd2->subobjs, l, child) 414 EINA_LIST_FOREACH(sd2->subobjs, l, child)
415 { 415 {
416 if (!_elm_widget_is(child)) continue;
416 if (elm_widget_focus_get(child)) 417 if (elm_widget_focus_get(child))
417 { 418 {
418 elm_widget_focused_object_clear(child); 419 elm_widget_focused_object_clear(child);