aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-09-21 15:57:46 +0000
committerThierry Vignaud <tv@mandriva.org>2007-09-21 15:57:46 +0000
commita8637bae0db7635b4720201e247d04f3ab648b75 (patch)
tree87b5e7ab04d8dce2f2ba63798b7c6ebee5838248
parent94349db2df63ee061b19a32747f22103dd900554 (diff)
downloadrpmdrake-a8637bae0db7635b4720201e247d04f3ab648b75.tar
rpmdrake-a8637bae0db7635b4720201e247d04f3ab648b75.tar.gz
rpmdrake-a8637bae0db7635b4720201e247d04f3ab648b75.tar.bz2
rpmdrake-a8637bae0db7635b4720201e247d04f3ab648b75.tar.xz
rpmdrake-a8637bae0db7635b4720201e247d04f3ab648b75.zip
make "Reset the selection" work if no group is selected in tree
-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>', ],