From fc0069be75ea75b288c0112962f81545e53078f5 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 27 Oct 2003 16:39:10 +0000 Subject: forward: drakperm incorrectly enable one to click "ok" after having altered a system rule whereas system rules are not saved since they're enforced by msec. this may confuse the end user ("why my changes weren't applied?") so let disable the "ok" button if the current entry is uneditable. --- perl-install/standalone/drakperm | 1 + 1 file changed, 1 insertion(+) diff --git a/perl-install/standalone/drakperm b/perl-install/standalone/drakperm index bfecbf98d..559462c99 100755 --- a/perl-install/standalone/drakperm +++ b/perl-install/standalone/drakperm @@ -283,6 +283,7 @@ sub row_setting_dialog { $suid->set_active($s_right{read}); $file->set_text($model->get($iter, 1)) if $iter; + $ok->set_sensitive(!$model->get($iter, 0)) if $iter; my $users = Gtk2::OptionMenu->new; $users->set_popdown_strings(&get_user_or_group('users')); -- cgit v1.2.1