From a64d595bfe7eaf661ac339e815a1a978b1ee028e Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 20 Oct 2003 16:48:30 +0000 Subject: 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(+) (limited to 'perl-install/standalone') diff --git a/perl-install/standalone/drakperm b/perl-install/standalone/drakperm index a94d87dfd..0b1f09b05 100755 --- a/perl-install/standalone/drakperm +++ b/perl-install/standalone/drakperm @@ -271,6 +271,7 @@ sub row_setting_dialog { my %s_right = get_right($s); $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