summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStafford Horne <shorne@gmail.com>2015-11-07 12:11:53 -0500
committerMike Blumenkrantz <zmike@osg.samsung.com>2015-11-07 12:11:53 -0500
commit7bedc8eea6aced87aafeb1f6bd64cf46137002c0 (patch)
treeabc42d70e457a7a874c4b9d016a8d6541c382945
parent0f2f21f2014bd767fe0afb9165ea3f36adbd3497 (diff)
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
-rw-r--r--src/bin/e_ilist.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/e_ilist.c b/src/bin/e_ilist.c
index 8953618d9..948248605 100644
--- a/src/bin/e_ilist.c
+++ b/src/bin/e_ilist.c
@@ -312,7 +312,8 @@ e_ilist_selected_get(Evas_Object *obj)
312 return sd->selected; 312 return sd->selected;
313 j = -1; 313 j = -1;
314 i = 0; 314 i = 0;
315 EINA_LIST_FOREACH(sd->selected_items, l, li) 315 /* Return the index the of last selected item */
316 EINA_LIST_FOREACH(sd->items, l, li)
316 { 317 {
317 if (li && li->selected) j = i; 318 if (li && li->selected) j = i;
318 i++; 319 i++;