diff options
Diffstat (limited to 'Rpmdrake/gui.pm')
-rw-r--r-- | Rpmdrake/gui.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm index 1acd0fa3..1d8cca6e 100644 --- a/Rpmdrake/gui.pm +++ b/Rpmdrake/gui.pm @@ -636,8 +636,9 @@ sub toggle_nodes { $pkgs->{$_}{selected} = $new_state; } $set_state->($_, node_state($_), $model); - $pkgs->{$_}{pkg} - and $size_selected += $pkgs->{$_}{pkg}->size * ($new_state ? 1 : -1); + if (my $pkg = $pkgs->{$_}{pkg}) { + $size_selected += $pkg->size * ($pkg->flag_installed ? ($new_state ? -1 : 1) : ($new_state ? 1 : -1)); + } } } |