diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-12-09 16:23:12 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-12-09 16:23:12 +0000 |
commit | 094bdd57550a66cd74fe2483e0f470153f743119 (patch) | |
tree | 3e630e1d88ab534027b3f1d78d08f42dd3b22ef6 | |
parent | 031cccdc126c763d486338487b2aeddf8ec32e1c (diff) | |
download | rpmdrake-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-- | NEWS | 1 | ||||
-rwxr-xr-x | rpmdrake | 6 |
2 files changed, 5 insertions, 2 deletions
@@ -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 @@ -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() { |