summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2014-03-04 12:08:08 +0000
committerTom Hacohen <tom@stosb.com>2014-03-04 12:13:29 +0000
commit138e4b4c92679449648c712d1eff0171831ab68b (patch)
treed45d46f3aa1a1f46583a6f7e3fdcaa32719bf58d
parentdd1406e40700df60a055db24d7358480b1fbc5bf (diff)
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.
-rw-r--r--src/modules/wizard/page_020.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/modules/wizard/page_020.c b/src/modules/wizard/page_020.c
index 9a6f47046..8a1b33be0 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)
59 e_widget_ilist_freeze(ob); 59 e_widget_ilist_freeze(ob);
60 60
61 profiles = e_config_profile_list(); 61 profiles = e_config_profile_list();
62 for (i = 0, l = profiles; l; l = l->next, i++) 62 for (i = 0, l = profiles; l; l = l->next)
63 { 63 {
64 Efreet_Desktop *desk = NULL; 64 Efreet_Desktop *desk = NULL;
65 char buf[PATH_MAX], *prof; 65 char buf[PATH_MAX], *prof;
@@ -102,6 +102,10 @@ wizard_page_show(E_Wizard_Page *pg)
102 e_widget_ilist_append(ob, ic, label, NULL, NULL, prof); 102 e_widget_ilist_append(ob, ic, label, NULL, NULL, prof);
103 free(prof); 103 free(prof);
104 if (desk) efreet_desktop_free(desk); 104 if (desk) efreet_desktop_free(desk);
105
106 /* We incremet here, because we don't want to increment it unless we
107 * actually found an item. */
108 i++;
105 } 109 }
106 if (profiles) eina_list_free(profiles); 110 if (profiles) eina_list_free(profiles);
107 111