summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/drakperm
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-07-24 16:27:10 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-07-24 16:27:10 +0000
commitf241282ac452c7f94e25151eac8c91991a2e9a9a (patch)
tree643204a8c2f0a2cdf076ee3e7d83ed53d28ef8dc /perl-install/standalone/drakperm
parent9fd537a8c231ba2b9cc12f10f5cd6f586deb9e54 (diff)
downloaddrakx-f241282ac452c7f94e25151eac8c91991a2e9a9a.tar
drakx-f241282ac452c7f94e25151eac8c91991a2e9a9a.tar.gz
drakx-f241282ac452c7f94e25151eac8c91991a2e9a9a.tar.bz2
drakx-f241282ac452c7f94e25151eac8c91991a2e9a9a.tar.xz
drakx-f241282ac452c7f94e25151eac8c91991a2e9a9a.zip
simplify (un|)sensitive property setting of the list
Diffstat (limited to 'perl-install/standalone/drakperm')
-rwxr-xr-xperl-install/standalone/drakperm4
1 files changed, 1 insertions, 3 deletions
diff --git a/perl-install/standalone/drakperm b/perl-install/standalone/drakperm
index e3d4f4d75..bcf1d60e6 100755
--- a/perl-install/standalone/drakperm
+++ b/perl-install/standalone/drakperm
@@ -142,9 +142,7 @@ $combo_perm->entry->set_text($default_perm_level);
$permList->get_selection->signal_connect('changed' => sub {
my ($select) = @_;
my (undef, $iter) = $select->get_selected;
- my $editable = $editable;
- $editable = 0 unless $iter;
- sensitive_buttons($editable);
+ sensitive_buttons($iter ? $editable : 0);
});
$w->main;