[elementary/widget] fixed logic error which was caused by me.
[framework/uifw/elementary.git] / src / lib / elm_widget.c
index 46c0603..9ec9675 100644 (file)
@@ -1589,11 +1589,8 @@ elm_widget_focus_steal(Evas_Object *obj)
      {
        parent = elm_widget_parent_get(parent);
        sd = evas_object_smart_data_get(parent);
-        if (sd->resize_obj)
-          {
-             if (elm_widget_focus_get(sd->resize_obj))
-               elm_widget_focused_object_clear(sd->resize_obj);
-          }
+        if (sd->resize_obj && elm_widget_focus_get(sd->resize_obj))
+          elm_widget_focused_object_clear(sd->resize_obj);
         else
          {
             const Eina_List *l;