commit fee90dbf349e4d16a11a4ec66ed21ea7610ce8f1
parent 4c14c38f44d17da42f7817ecf04b3c1d6d6ccf5c
Author: Colin Leroy <colin@colino.net>
Date: Tue, 17 Nov 2015 11:11:56 +0100
Fix bug #3559 more correctly
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gtk/prefswindow.c b/src/gtk/prefswindow.c
@@ -320,7 +320,7 @@ static void prefswindow_build_tree(GtkWidget *tree_view, GSList *prefs_pages,
gtk_tree_model_foreach(GTK_TREE_MODEL(store),
(GtkTreeModelForeachFunc) find_node_by_name,
&find_name);
- if (find_name.found && page->path[i] != page->path[i-1]) {
+ if (find_name.found && (i == 0 || page->path[i] != page->path[i-1])) {
node = find_name.node;
gtk_tree_model_get(GTK_TREE_MODEL(store), &node,
PREFS_PAGE_DATA, &prefs_node,