aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2006-09-26 10:41:23 +0000
committerThierry Vignaud <tv@mandriva.org>2006-09-26 10:41:23 +0000
commit02ddc9fb755e11a4c1270c38a2f04b52643e47bf (patch)
tree4a87b7054f44a743877e11dbee746bbb40343514
parent371dbf26255801c1d33ffdd4477823a6b316740e (diff)
downloadrpmdrake-02ddc9fb755e11a4c1270c38a2f04b52643e47bf.tar
rpmdrake-02ddc9fb755e11a4c1270c38a2f04b52643e47bf.tar.gz
rpmdrake-02ddc9fb755e11a4c1270c38a2f04b52643e47bf.tar.bz2
rpmdrake-02ddc9fb755e11a4c1270c38a2f04b52643e47bf.tar.xz
rpmdrake-02ddc9fb755e11a4c1270c38a2f04b52643e47bf.zip
(toggle_nodes) fix icon state on unselecting (#26126)
-rwxr-xr-xrpmdrake3
1 files changed, 1 insertions, 2 deletions
diff --git a/rpmdrake b/rpmdrake
index b16dfe4b..718fad08 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -1039,8 +1039,7 @@ or you already installed all of them."));
#- not upgradable (older than what currently installed)
exists $pkgs->{$_} or next;
$pkgs->{$_}{pkg} or $new_state = 0; #- can't be removed
- $set_state->($_, $new_state ? ($old_state eq 'installed' ? 'to_remove' : 'to_install') : member($old_state, qw(to_remove installed)) ? 'installed' : $pkgs->{$_}{pkg}->flag_upgrade ? 'to_update' : 'uninstalled', $detail_tree_model);
-
+ $set_state->($_, $options->{node_state}($_), $detail_tree_model);
$pkgs->{$_}{selected} = $new_state;
$pkgs->{$_}{pkg}
and $size_selected += $pkgs->{$_}{pkg}->size * ($new_state ? 1 : -1);