aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2010-03-04 12:41:29 +0000
committerThierry Vignaud <tv@mandriva.org>2010-03-04 12:41:29 +0000
commitec57316d32af29f5371536d15a4f56a437126031 (patch)
tree80a189a8d35bc085346841803bd2c328daad2c26
parent5ec98e2937eca70d5477b3c019c46fb68897d212 (diff)
downloadrpmdrake-ec57316d32af29f5371536d15a4f56a437126031.tar
rpmdrake-ec57316d32af29f5371536d15a4f56a437126031.tar.gz
rpmdrake-ec57316d32af29f5371536d15a4f56a437126031.tar.bz2
rpmdrake-ec57316d32af29f5371536d15a4f56a437126031.tar.xz
rpmdrake-ec57316d32af29f5371536d15a4f56a437126031.zip
(toggle_nodes) fix for a crash (#56144)
-rw-r--r--NEWS2
-rw-r--r--Rpmdrake/gui.pm1
2 files changed, 3 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 8a888518..9e322001 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- fix for a crash (#56144)
+
Version 5.25 - 3 March 2010, Thierry Vignaud
- do not show file list if empty
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm
index 4898fe08..f54dea8a 100644
--- a/Rpmdrake/gui.pm
+++ b/Rpmdrake/gui.pm
@@ -839,6 +839,7 @@ sub toggle_nodes {
scroll => 1,
);
foreach (@cant) {
+ next unless $pkgs->{$_}{pkg};
$pkgs->{$_}{pkg}->set_flag_requested(0);
$pkgs->{$_}{pkg}->set_flag_required(0);
}