diff options
-rwxr-xr-x | rpmdrake | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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>', ], |