efl_ui_win: Avoid a call to NULL
authorYeongJong Lee <yj34.lee@samsung.com>
Wed, 24 Jan 2018 06:36:08 +0000 (15:36 +0900)
committerWonki Kim <wonki_.kim@samsung.com>
Tue, 3 Apr 2018 07:14:04 +0000 (16:14 +0900)
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

src/lib/elementary/efl_ui_win.c

index e13d436..83b27e4 100644 (file)
@@ -2984,16 +2984,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);