elm/colorselector: return early from theme apply if object is not yet finalized

Summary:
the remainder of this function cannot be handled until objects are set up
later in construction

@fix
Depends on D8955

Reviewers: devilhorns

Reviewed By: devilhorns

Subscribers: devilhorns, cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D8956
This commit is contained in:
Mike Blumenkrantz 2019-05-29 09:17:00 -04:00
parent d09edd7242
commit b265bb0e2b
1 changed files with 3 additions and 0 deletions

View File

@ -1333,6 +1333,9 @@ _elm_colorselector_efl_ui_widget_theme_apply(Eo *obj, Elm_Colorselector_Data *sd
int_ret = efl_ui_widget_theme_apply(efl_super(obj, MY_CLASS));
if (int_ret == EFL_UI_THEME_APPLY_ERROR_GENERIC) return int_ret;
/* none of the below objects are created before finalize */
if (!efl_finalized_get(obj)) return int_ret;
if ((sd->mode == ELM_COLORSELECTOR_PALETTE) ||
(sd->mode == ELM_COLORSELECTOR_ALL) ||
(sd->mode == ELM_COLORSELECTOR_BOTH))