forked from enlightenment/efl
elm_widget_item_static_focus: check for adapter existence in unrealize cb
Summary: adapter can be null if it was previously destroyed @fix Depends on D9001 Reviewers: bu5hm4n Reviewed By: bu5hm4n Subscribers: bu5hm4n, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9002
This commit is contained in:
parent
835058e688
commit
625c2a0227
|
@ -68,7 +68,7 @@ _unrealized_cb(void *data, const Efl_Event *ev EINA_UNUSED)
|
||||||
if (pd) /* if the obect is dead pd is NULL */
|
if (pd) /* if the obect is dead pd is NULL */
|
||||||
{
|
{
|
||||||
//only delete the adapter when not focused, this will lead to awfull artifacts
|
//only delete the adapter when not focused, this will lead to awfull artifacts
|
||||||
if (!efl_ui_focus_object_focus_get(pd->adapter))
|
if (pd->adapter && (!efl_ui_focus_object_focus_get(pd->adapter)))
|
||||||
{
|
{
|
||||||
pd->in_unrealize = EINA_TRUE;
|
pd->in_unrealize = EINA_TRUE;
|
||||||
efl_del(pd->adapter);
|
efl_del(pd->adapter);
|
||||||
|
|
Loading…
Reference in New Issue