]> spindle.queued.net Git - midori/commitdiff
Always expand rows when trying to restore the selection
authorEnrico Tröger <enrico.troeger@uvena.de>
Wed, 20 Jan 2010 06:19:11 +0000 (07:19 +0100)
committerChristian Dywan <christian@twotoasts.de>
Wed, 20 Jan 2010 06:19:11 +0000 (07:19 +0100)
extensions/cookie-manager/cookie-manager-page.c

index 1c5e5d30beea5a33b3122c942267f76a333604c9..a67d7dfff02cff0e1ed28765cc1fa218fb0d78a4 100644 (file)
@@ -385,9 +385,7 @@ static gboolean cm_try_to_select(CMPathWalkFunc path_func, GtkTreeSelection *sel
        if (gtk_tree_model_get_iter(model, &iter, path))
        {
                GtkTreeView *treeview = gtk_tree_selection_get_tree_view(selection);
-               gboolean was_expanded =
-                       ! gtk_tree_model_iter_has_child(model, &iter) ||
-                         gtk_tree_view_row_expanded(treeview, path);
+               gboolean was_expanded = gtk_tree_view_row_expanded(treeview, path);
                /* to get gtk_tree_selection_select_path() working, we need to expand the row first
                 * if it isn't expanded yet, at least when the row is a parent item */
                if (! was_expanded)