elm_list: use internal focus set instead of public focus set

elm_object_item_focus_set ensures that the list also gets focus, thus calling
that in _elm_list_elm_widget_on_focus_update would result in a infinite
call recursion, if setting the focus fails (for example when the object
is not visible yet, [see enlightenment for that]).

This fixes a freeze if you open lunchers config.
This commit is contained in:
Marcel Hollerbach 2017-11-19 11:08:36 +01:00
parent 796de8cb86
commit b27944da08
1 changed files with 1 additions and 1 deletions

View File

@ -1274,7 +1274,7 @@ _elm_list_elm_widget_on_focus_update(Eo *obj, Elm_List_Data *sd, Elm_Object_Item
if (!_elm_config->item_select_on_focus_disable && is_sel)
elm_list_item_selected_set(EO_OBJ(it), EINA_TRUE);
else
elm_object_item_focus_set(EO_OBJ(it), EINA_TRUE);
_elm_list_item_focused(EO_OBJ(it));
}
}
}