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:
YeongJong Lee 2018-01-24 15:36:08 +09:00 committed by Jean-Philippe Andre
parent 692136202f
commit f6ba674cd8
1 changed files with 1 additions and 9 deletions

View File

@ -2603,16 +2603,8 @@ _elm_win_focus_target_get(Evas_Object *obj)
{
if (!elm_widget_highlight_ignore_get(o))
break;
o = elm_widget_parent_get(o);
if (!o)
o = evas_object_smart_parent_get(o);
}
else
{
o = elm_widget_parent_widget_get(o);
if (!o)
o = evas_object_smart_parent_get(o);
}
o = elm_widget_parent_widget_get(o);
}
while (o);