[yast-commit] r40794 - /trunk/ntp-client/src/dialogs.ycp
Author: kmachalkova Date: Thu Sep 6 18:18:46 2007 New Revision: 40794 URL: http://svn.opensuse.org/viewcvs/yast?rev=40794&view=rev Log: Correct fix for not re-reading NTP configuration when calling the ntp-client from outside (no exception for the 1st stage) Modified: trunk/ntp-client/src/dialogs.ycp Modified: trunk/ntp-client/src/dialogs.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/ntp-client/src/dialogs.ycp?rev=40794&r1=40793&r2=40794&view=diff ============================================================================== --- trunk/ntp-client/src/dialogs.ycp (original) +++ trunk/ntp-client/src/dialogs.ycp Thu Sep 6 18:18:46 2007 @@ -53,21 +53,14 @@ define symbol ReadDialog() ``{ Wizard::RestoreHelp(HELPS["read"]:""); - if(Stage::initial()) - { - NtpClient::ProcessNtpConf(); - return `next; - } - else - { - // checking for root permissions (#158483) - if (!Confirm::MustBeRoot()) - return `abort; - - NtpClient::AbortFunction = PollAbort; - boolean ret = NtpClient::Read(); - return ret ? `next : `abort; - } + // checking for root permissions (#158483) + if (!Stage::initial() && !Confirm::MustBeRoot()) + return `abort; + + NtpClient::AbortFunction = PollAbort; + boolean ret = NtpClient::Read(); + return ret ? `next : `abort; + } /** -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
kmachalkova@svn.opensuse.org