diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-12-09 16:22:46 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-12-09 16:22:46 +0000 |
commit | e3d6b070b8485ed390d4e1d2a9f9395de4818b22 (patch) | |
tree | 65c884badd2ef6e435fdd809192c173f804b19f3 | |
parent | 1b4269123380fb6b55497ba5a129e4b4f1da07f5 (diff) | |
download | rpmdrake-e3d6b070b8485ed390d4e1d2a9f9395de4818b22.tar rpmdrake-e3d6b070b8485ed390d4e1d2a9f9395de4818b22.tar.gz rpmdrake-e3d6b070b8485ed390d4e1d2a9f9395de4818b22.tar.bz2 rpmdrake-e3d6b070b8485ed390d4e1d2a9f9395de4818b22.tar.xz rpmdrake-e3d6b070b8485ed390d4e1d2a9f9395de4818b22.zip |
(do_search) fix a rare crash on searching (#46225)
-rw-r--r-- | NEWS | 1 | ||||
-rwxr-xr-x | rpmdrake | 6 |
2 files changed, 5 insertions, 2 deletions
@@ -4,6 +4,7 @@ o fix displaying type of altered mirrorlist media (#44930) - rpmdrake: o list plasma applets in GUI package list too (#45835) + o fix a rare crash on searching (#46225) o update GUI package list Version 5.0.3 - 21 October 2008, Thierry Vignaud @@ -203,8 +203,10 @@ sub do_search($$$$$$$) { gtkset_mousecursor_normal($::w->{rwindow}->window); } my $tree_selection = $tree->get_selection; - $tree_selection->select_path($tree_model->get_path($iter)); - $tree_selection->signal_emit('changed'); + if (my $path = $tree_model->get_path($iter)) { + $tree_selection->select_path($path); + $tree_selection->signal_emit('changed'); + } } sub quit() { |