From 2e753d383ca8b114c05473422e8b6ecf0885f1e3 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 9 Sep 2008 20:38:18 +0000 Subject: (toggle_all) fix crashing when selecting all packages (#40025) --- Rpmdrake/gui.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v1.2.1