Fix bug #3565 by reverting “fix bug 3559, 'Opening preferences window causes out...
authorRicardo Mones <ricardo@mones.org>
Tue, 17 Nov 2015 09:59:51 +0000 (10:59 +0100)
committerRicardo Mones <ricardo@mones.org>
Tue, 17 Nov 2015 09:59:51 +0000 (10:59 +0100)
This reverts commit 0314464dd5c5e4e49f7fb5835e0316726267506e.

src/gtk/prefswindow.c

index 3b9d3d6..f6c840b 100644 (file)
@@ -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 (i > 0 && find_name.found && page->path[i] != page->path[i-1]) {
+                       if (find_name.found && 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,