summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/elementary/elm_widget_item_static_focus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elementary/elm_widget_item_static_focus.c b/src/lib/elementary/elm_widget_item_static_focus.c
index f75aacb956..f040cbcf4c 100644
--- a/src/lib/elementary/elm_widget_item_static_focus.c
+++ b/src/lib/elementary/elm_widget_item_static_focus.c
@@ -68,7 +68,7 @@ _unrealized_cb(void *data, const Efl_Event *ev EINA_UNUSED)
68 if (pd) /* if the obect is dead pd is NULL */ 68 if (pd) /* if the obect is dead pd is NULL */
69 { 69 {
70 //only delete the adapter when not focused, this will lead to awfull artifacts 70 //only delete the adapter when not focused, this will lead to awfull artifacts
71 if (!efl_ui_focus_object_focus_get(pd->adapter)) 71 if (pd->adapter && (!efl_ui_focus_object_focus_get(pd->adapter)))
72 { 72 {
73 pd->in_unrealize = EINA_TRUE; 73 pd->in_unrealize = EINA_TRUE;
74 efl_del(pd->adapter); 74 efl_del(pd->adapter);