diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-09-21 15:57:46 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-09-21 15:57:46 +0000 |
commit | a8637bae0db7635b4720201e247d04f3ab648b75 (patch) | |
tree | 87b5e7ab04d8dce2f2ba63798b7c6ebee5838248 | |
parent | 94349db2df63ee061b19a32747f22103dd900554 (diff) | |
download | rpmdrake-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-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>', ], |