win: Avoid CRI message before finalized
authorJean-Philippe Andre <jp.andre@samsung.com>
Fri, 7 Jul 2017 06:34:02 +0000 (15:34 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Fri, 7 Jul 2017 06:44:51 +0000 (15:44 +0900)
Test case was Bg EO API in elm_test

src/lib/elementary/efl_ui_win.c

index a6a1090..b763f21 100644 (file)
@@ -4393,6 +4393,7 @@ _elm_win_frame_style_update(Efl_Ui_Win_Data *sd, Eina_Bool force_emit, Eina_Bool
    if (!sd->frame_obj)
      {
         if (EINA_LIKELY(sd->type == ELM_WIN_FAKE)) return;
+        if (!efl_finalized_get(sd->obj)) return;
         CRI("Window has no frame object!");
         return;
      }