forked from enlightenment/efl
elm/hoversel: avoid calling api functions on null hoversel objects
the hoversel must be created before it can be shown, and its internal hover object may be destroyed when it is hidden @fix Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D9631
This commit is contained in:
parent
945447d1f8
commit
1948bf0d07
|
@ -678,7 +678,8 @@ _elm_hoversel_efl_gfx_entity_visible_set(Eo *obj, Elm_Hoversel_Data *sd, Eina_Bo
|
|||
return;
|
||||
|
||||
efl_gfx_entity_visible_set(efl_super(obj, MY_CLASS), vis);
|
||||
efl_gfx_entity_visible_set(sd->hover, vis);
|
||||
if (sd->hover)
|
||||
efl_gfx_entity_visible_set(sd->hover, vis);
|
||||
}
|
||||
|
||||
EOLIAN static void
|
||||
|
|
|
@ -1811,8 +1811,8 @@ _menu_call(Evas_Object *obj)
|
|||
if (sd->hoversel)
|
||||
{
|
||||
_hoversel_position(obj);
|
||||
evas_object_show(sd->hoversel);
|
||||
elm_hoversel_hover_begin(sd->hoversel);
|
||||
evas_object_show(sd->hoversel);
|
||||
}
|
||||
|
||||
if (!_elm_config->desktop_entry)
|
||||
|
|
Loading…
Reference in New Issue