forked from enlightenment/efl
list: Removed unnecessary check in focused_item_get.
focused_item is NULL if the list is unfocused so do not need to check if the list is focused. Just return focused_item.
This commit is contained in:
parent
7780b975ad
commit
26f4d3fcd9
|
@ -3149,9 +3149,7 @@ _elm_list_focused_item_get(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
|
|||
{
|
||||
Elm_Object_Item **ret = va_arg(*list, Elm_Object_Item **);
|
||||
Elm_List_Smart_Data *sd = _pd;
|
||||
if (ret) *ret = NULL;
|
||||
|
||||
if (!elm_object_focus_get(obj)) return;
|
||||
if (ret) *ret = sd->focused_item;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue