discomfitor pushed a commit to branch enlightenment-0.19. http://git.enlightenment.org/core/enlightenment.git/commit/?id=cd2ebfe5326d05a5fd719213e39650a292ed71fd
commit cd2ebfe5326d05a5fd719213e39650a292ed71fd Author: Stafford Horne <sho...@gmail.com> Date: Sat Nov 7 12:11:53 2015 -0500 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 --- src/bin/e_ilist.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/e_ilist.c b/src/bin/e_ilist.c index 0ec7ace..e931ccb 100644 --- a/src/bin/e_ilist.c +++ b/src/bin/e_ilist.c @@ -325,7 +325,8 @@ e_ilist_selected_get(Evas_Object *obj) return sd->selected; j = -1; 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; i++; --