tasn pushed a commit to branch enlightenment-0.18.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=138e4b4c92679449648c712d1eff0171831ab68b

commit 138e4b4c92679449648c712d1eff0171831ab68b
Author: Tom Hacohen <[email protected]>
Date:   Tue Mar 4 12:08:08 2014 +0000

    bugfix: Fix selection of the standard profile in wizard.
    
    There was a bug there, that caused the one after the standard to be
    selected, instead of the standard one.
    This was caused because directories and the default profile were not
    properly ignored.
---
 src/modules/wizard/page_020.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/modules/wizard/page_020.c b/src/modules/wizard/page_020.c
index 9a6f470..8a1b33b 100644
--- a/src/modules/wizard/page_020.c
+++ b/src/modules/wizard/page_020.c
@@ -59,7 +59,7 @@ wizard_page_show(E_Wizard_Page *pg)
    e_widget_ilist_freeze(ob);
 
    profiles = e_config_profile_list();
-   for (i = 0, l = profiles; l; l = l->next, i++)
+   for (i = 0, l = profiles; l; l = l->next)
      {
         Efreet_Desktop *desk = NULL;
         char buf[PATH_MAX], *prof;
@@ -102,6 +102,10 @@ wizard_page_show(E_Wizard_Page *pg)
         e_widget_ilist_append(ob, ic, label, NULL, NULL, prof);
         free(prof);
         if (desk) efreet_desktop_free(desk);
+
+        /* We incremet here, because we don't want to increment it unless we
+         * actually found an item. */
+        i++;
      }
    if (profiles) eina_list_free(profiles);
 

-- 


Reply via email to