Mailinglist Archive: yast-commit (815 mails)

< Previous Next >
[yast-commit] r39994 - in /trunk/ntp-client/src: dialogs.ycp widgets.ycp
  • From: kmachalkova@xxxxxxxxxxxxxxxx
  • Date: Mon, 06 Aug 2007 12:30:18 -0000
  • Message-id: <20070806123018.EAE0BB5A81@xxxxxxxxxxxxxxxx>
Author: kmachalkova
Date: Mon Aug  6 14:30:18 2007
New Revision: 39994

URL: http://svn.opensuse.org/viewcvs/yast?rev=39994&view=rev
Log:
Disable configuring access control rules if NTP
is to be configured via DHCP

Modified:
    trunk/ntp-client/src/dialogs.ycp
    trunk/ntp-client/src/widgets.ycp

Modified: trunk/ntp-client/src/dialogs.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ntp-client/src/dialogs.ycp?rev=39994&r1=39993&r2=39994&view=diff
==============================================================================
--- trunk/ntp-client/src/dialogs.ycp (original)
+++ trunk/ntp-client/src/dialogs.ycp Mon Aug  6 14:30:18 2007
@@ -158,6 +158,8 @@
            `VBox (
                `Left ("run_chroot"),
                `VSpacing(),
+               `Left ("secure"),
+               `VSpacing(),
                `Frame (
                    // TRANSLATORS: UI frame label
                    _("Firewall Settings"),
@@ -177,7 +179,7 @@
        "security" : $[
            "header" : _("Security Settings"),
            "contents" :tab2,
-           "widget_names" : [ "run_chroot", "firewall"]
+           "widget_names" : [ "run_chroot", "secure", "firewall"]
        ]
     ];
 

Modified: trunk/ntp-client/src/widgets.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ntp-client/src/widgets.ycp?rev=39994&r1=39993&r2=39994&view=diff
==============================================================================
--- trunk/ntp-client/src/widgets.ycp (original)
+++ trunk/ntp-client/src/widgets.ycp Mon Aug  6 14:30:18 2007
@@ -267,7 +267,11 @@
 }
 
 define void secureInit (string id) ``{
-   UI::ChangeWidget(`id("secure"), `Value, ( NtpClient::restrict_map != $[]) );
+    y2milestone("Restrict %1", NtpClient::restrict_map);
+    if (NtpClient::config_dhcp)
+       UI::ChangeWidget(`id("secure"), `Enabled, false);
+    else
+       UI::ChangeWidget(`id("secure"), `Value, ( NtpClient::restrict_map != $[]) );
 }
 
 define void secureStore (string id, map event) ``{
@@ -669,7 +673,7 @@
 
 define void restrictOptionsInit ( string id ) ``{
     string address = NtpClient::selected_record["address"]:"";
-    if ( NtpClient::restrict_map == $[] )
+    if ( NtpClient::restrict_map == $[] || NtpClient::config_dhcp)
     {
        UI::ChangeWidget(`id("ac_options"), `Enabled, false);
     }

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages