e/ilist: Fix issue with multiselect returning wrong index
Summary: I noticed this because the description dialog in "Apps > Startup Application" was never getting properly populated. Test Plan: When selecting items in the "Apps > Startup Applications" config the description should update if a "Comment" field is available in the .desktop file. Reviewers: zmike Subscribers: cedric, seoz Differential Revision: https://phab.enlightenment.org/D3297
This commit is contained in:
parent
0f2f21f201
commit
7bedc8eea6
|
@ -312,7 +312,8 @@ e_ilist_selected_get(Evas_Object *obj)
|
||||||
return sd->selected;
|
return sd->selected;
|
||||||
j = -1;
|
j = -1;
|
||||||
i = 0;
|
i = 0;
|
||||||
EINA_LIST_FOREACH(sd->selected_items, l, li)
|
/* Return the index the of last selected item */
|
||||||
|
EINA_LIST_FOREACH(sd->items, l, li)
|
||||||
{
|
{
|
||||||
if (li && li->selected) j = i;
|
if (li && li->selected) j = i;
|
||||||
i++;
|
i++;
|
||||||
|
|
Loading…
Reference in New Issue