aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-09-09 20:38:18 +0000
committerThierry Vignaud <tv@mandriva.org>2008-09-09 20:38:18 +0000
commit2e753d383ca8b114c05473422e8b6ecf0885f1e3 (patch)
tree7a6754f144fb0be6ec9cef90ea3d4c4ea94634bb
parenta388076c2efe34de7298b183e82c9cffc7983693 (diff)
downloadrpmdrake-2e753d383ca8b114c05473422e8b6ecf0885f1e3.tar
rpmdrake-2e753d383ca8b114c05473422e8b6ecf0885f1e3.tar.gz
rpmdrake-2e753d383ca8b114c05473422e8b6ecf0885f1e3.tar.bz2
rpmdrake-2e753d383ca8b114c05473422e8b6ecf0885f1e3.tar.xz
rpmdrake-2e753d383ca8b114c05473422e8b6ecf0885f1e3.zip
(toggle_all) fix crashing when selecting all packages (#40025)
-rw-r--r--Rpmdrake/gui.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm
index 11b3874b..620f4d4b 100644
--- a/Rpmdrake/gui.pm
+++ b/Rpmdrake/gui.pm
@@ -286,7 +286,7 @@ sub toggle_all {
#- not all is selected, select all if no option to potentially override
(exists $common->{partialsel_unsel} && $common->{partialsel_unsel}->(\@unsel, \@l) ? difference2(\@l, \@unsel) : @unsel)
: @l;
- toggle_nodes($w->{detail_list}->window, $w->{detail_list_model}, \&set_leaf_state, undef, @p);
+ toggle_nodes($w->{detail_list}->window, $w->{detail_list_model}, \&set_leaf_state, node_state($p[0]), @p);
update_size($common);
}