aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-12-09 16:22:46 +0000
committerThierry Vignaud <tv@mandriva.org>2008-12-09 16:22:46 +0000
commite3d6b070b8485ed390d4e1d2a9f9395de4818b22 (patch)
tree65c884badd2ef6e435fdd809192c173f804b19f3
parent1b4269123380fb6b55497ba5a129e4b4f1da07f5 (diff)
downloadrpmdrake-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--NEWS1
-rwxr-xr-xrpmdrake6
2 files changed, 5 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 241c8dfc..f9d1d9b9 100644
--- a/NEWS
+++ b/NEWS
@@ -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
diff --git a/rpmdrake b/rpmdrake
index e2711c74..e7cc839f 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -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() {