summaryrefslogtreecommitdiffstats
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
parent9fd537a8c231ba2b9cc12f10f5cd6f586deb9e54 (diff)
downloaddrakx-backup-do-not-use-f241282ac452c7f94e25151eac8c91991a2e9a9a.tar
drakx-backup-do-not-use-f241282ac452c7f94e25151eac8c91991a2e9a9a.tar.gz
drakx-backup-do-not-use-f241282ac452c7f94e25151eac8c91991a2e9a9a.tar.bz2
drakx-backup-do-not-use-f241282ac452c7f94e25151eac8c91991a2e9a9a.tar.xz
drakx-backup-do-not-use-f241282ac452c7f94e25151eac8c91991a2e9a9a.zip
simplify (un|)sensitive property setting of the list
-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;