From 8f37e3802e3d8a439ecb63ed87cafe2167feb4bf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Enrico=20Tr=C3=B6ger?= Date: Wed, 20 Jan 2010 07:19:11 +0100 Subject: [PATCH] Always expand rows when trying to restore the selection --- extensions/cookie-manager/cookie-manager-page.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/extensions/cookie-manager/cookie-manager-page.c b/extensions/cookie-manager/cookie-manager-page.c index 1c5e5d30..a67d7dff 100644 --- a/extensions/cookie-manager/cookie-manager-page.c +++ b/extensions/cookie-manager/cookie-manager-page.c @@ -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) -- 2.39.5