aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xrpmdrake4
1 files changed, 3 insertions, 1 deletions
diff --git a/rpmdrake b/rpmdrake
index e9f99173..b1d0c17b 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -398,7 +398,9 @@ sub run_treeview_dialog {
reset_search();
$size_selected = 0;
$force_displaying_group = 1;
- $tree->get_selection->signal_emit('changed');
+ my $tree_selection = $tree->get_selection;
+ $tree_selection->select_path(Gtk2::TreePath->new_from_string('0')) if !$tree_selection->get_selected;
+ $tree_selection->signal_emit('changed');
}, undef, '<Item>' ],
[ N("/_File") . N("/Reload the _packages list"), undef, $reload_db_and_clear_all, undef, '<Item>' ],
[ N("/_File") . N("/_Quit"), N("<control>Q"), sub { Gtk2->main_quit }, undef, '<Item>', ],