widget: don't access a widget focus if the object is not a widget.

This commit is contained in:
Hermet Park 2016-02-13 01:43:56 +09:00
parent b01d3c9e1b
commit 3ca0135de1
1 changed files with 1 additions and 0 deletions

View File

@ -413,6 +413,7 @@ _if_focused_revert(Evas_Object *obj,
Evas_Object *child;
EINA_LIST_FOREACH(sd2->subobjs, l, child)
{
if (!_elm_widget_is(child)) continue;
if (elm_widget_focus_get(child))
{
elm_widget_focused_object_clear(child);