aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-12-09 16:23:12 +0000
committerThierry Vignaud <tv@mandriva.org>2008-12-09 16:23:12 +0000
commit094bdd57550a66cd74fe2483e0f470153f743119 (patch)
tree3e630e1d88ab534027b3f1d78d08f42dd3b22ef6
parent031cccdc126c763d486338487b2aeddf8ec32e1c (diff)
downloadrpmdrake-094bdd57550a66cd74fe2483e0f470153f743119.tar
rpmdrake-094bdd57550a66cd74fe2483e0f470153f743119.tar.gz
rpmdrake-094bdd57550a66cd74fe2483e0f470153f743119.tar.bz2
rpmdrake-094bdd57550a66cd74fe2483e0f470153f743119.tar.xz
rpmdrake-094bdd57550a66cd74fe2483e0f470153f743119.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 7fa20081..4cea786d 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,5 @@
- rpmdrake:
+ o fix a rare crash on searching (#46225)
o only look at name, not at full name (n-e-v-r) when performing
search in names (#45410)
o update GUI package list
diff --git a/rpmdrake b/rpmdrake
index 79556615..841ede4e 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() {