forked from enlightenment/efl
efl_ui_win: Avoid a call to NULL
Summary: parent_get and smart_parent_get are called in parent_widget_get this also remove the duplicated code Reviewers: jpeg Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D5757
This commit is contained in:
parent
692136202f
commit
f6ba674cd8
|
@ -2603,16 +2603,8 @@ _elm_win_focus_target_get(Evas_Object *obj)
|
||||||
{
|
{
|
||||||
if (!elm_widget_highlight_ignore_get(o))
|
if (!elm_widget_highlight_ignore_get(o))
|
||||||
break;
|
break;
|
||||||
o = elm_widget_parent_get(o);
|
|
||||||
if (!o)
|
|
||||||
o = evas_object_smart_parent_get(o);
|
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
o = elm_widget_parent_widget_get(o);
|
o = elm_widget_parent_widget_get(o);
|
||||||
if (!o)
|
|
||||||
o = evas_object_smart_parent_get(o);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
while (o);
|
while (o);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue