forked from enlightenment/efl
elm_widget: do not reparent subobjs to top widget for non-elm objects
this breaks handling of non-elm objects and makes it impossible to safely manage
object lifetimes
ref D3957
ref 62cf70034d
@fix
This commit is contained in:
parent
60449b48dc
commit
6644808159
|
@ -846,7 +846,8 @@ static inline Eina_Bool
|
|||
_elm_widget_sub_object_redirect_to_top(Evas_Object *obj, Evas_Object *sobj)
|
||||
{
|
||||
Eina_Bool ret = elm_widget_sub_object_del(obj, sobj);
|
||||
if (ret)
|
||||
if (!ret) return ret;
|
||||
if (elm_widget_is(sobj))
|
||||
ret = elm_widget_sub_object_add(elm_widget_top_get(obj), sobj);
|
||||
|
||||
return ret;
|
||||
|
|
Loading…
Reference in New Issue