forked from enlightenment/efl
genlist shouldn't try to focus an item when it has no items
This commit is contained in:
parent
b2250c568d
commit
91a9805bc4
|
@ -2841,7 +2841,8 @@ _elm_genlist_smart_on_focus(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
it = elm_genlist_first_item_get(obj);
|
it = elm_genlist_first_item_get(obj);
|
||||||
elm_object_item_focus_set(it, EINA_TRUE);
|
if (it)
|
||||||
|
elm_object_item_focus_set(it, EINA_TRUE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue