diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2003-07-24 16:27:10 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2003-07-24 16:27:10 +0000 |
commit | f241282ac452c7f94e25151eac8c91991a2e9a9a (patch) | |
tree | 643204a8c2f0a2cdf076ee3e7d83ed53d28ef8dc | |
parent | 9fd537a8c231ba2b9cc12f10f5cd6f586deb9e54 (diff) | |
download | drakx-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
-rwxr-xr-x | perl-install/standalone/drakperm | 4 |
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; |