forked from enlightenment/efl
elm_gengrid: do not try to bring in a NULL item
This commit is contained in:
parent
53052abaa6
commit
d30985b4e2
|
@ -4240,6 +4240,8 @@ _gengrid_element_focused(void *data, const Efl_Event *ev)
|
|||
Elm_Widget *focused = efl_ui_focus_manager_focus_get(ev->object);
|
||||
Elm_Widget_Item *item;
|
||||
|
||||
if (!focused) return;
|
||||
|
||||
if (efl_isa(focused, EFL_UI_FOCUS_COMPOSITION_ADAPTER_CLASS))
|
||||
item = efl_parent_get(focused);
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue