From: Enrico Tröger Date: Wed, 20 Jan 2010 06:19:11 +0000 (+0100) Subject: Always expand rows when trying to restore the selection X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f37e3802e3d8a439ecb63ed87cafe2167feb4bf;p=midori Always expand rows when trying to restore the selection --- 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)