summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/elementary/elm_gengrid.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/elementary/elm_gengrid.c b/src/lib/elementary/elm_gengrid.c
index eb9248abaf..fb9c64a7e0 100644
--- a/src/lib/elementary/elm_gengrid.c
+++ b/src/lib/elementary/elm_gengrid.c
@@ -4340,8 +4340,11 @@ _gengrid_element_focused(void *data, const Efl_Event *ev)
4340 Efl_Ui_Widget *focused = efl_ui_focus_manager_focus_get(ev->object); 4340 Efl_Ui_Widget *focused = efl_ui_focus_manager_focus_get(ev->object);
4341 Elm_Widget_Item *item = NULL, *old_item = NULL; 4341 Elm_Widget_Item *item = NULL, *old_item = NULL;
4342 4342
4343 item = efl_ui_focus_parent_provider_gen_item_fetch(pd->provider, focused); 4343 /* there may be no focus during widget setup */
4344 old_item = efl_ui_focus_parent_provider_gen_item_fetch(pd->provider, ev->info); 4344 if (focused)
4345 item = efl_ui_focus_parent_provider_gen_item_fetch(pd->provider, focused);
4346 if (ev->info)
4347 old_item = efl_ui_focus_parent_provider_gen_item_fetch(pd->provider, ev->info);
4345 4348
4346 if (old_item) 4349 if (old_item)
4347 { 4350 {