author | tille <tille> | 2002-10-21 21:52:48 (UTC) |
---|---|---|
committer | tille <tille> | 2002-10-21 21:52:48 (UTC) |
commit | 5bcd4ccebd86f912c693de16675da44d21e11d94 (patch) (side-by-side diff) | |
tree | 069d23db3e886319f0a76071609d11b814bd4bfb | |
parent | 21d29dbf8a9c1a12c7c23f96b80307e87ffaa50a (diff) | |
download | opie-5bcd4ccebd86f912c693de16675da44d21e11d94.zip opie-5bcd4ccebd86f912c693de16675da44d21e11d94.tar.gz opie-5bcd4ccebd86f912c693de16675da44d21e11d94.tar.bz2 |
saves feature settings now
-rw-r--r-- | noncore/settings/netsystemtime/ntp.cpp | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/noncore/settings/netsystemtime/ntp.cpp b/noncore/settings/netsystemtime/ntp.cpp index 6f6316c..f60e38d 100644 --- a/noncore/settings/netsystemtime/ntp.cpp +++ b/noncore/settings/netsystemtime/ntp.cpp @@ -80,4 +80,4 @@ Ntp::~Ntp() { - delete ntpProcess; - Config ntpSrvs("/etc/ntpservers",Config::File); + delete ntpProcess; + Config ntpSrvs("/etc/ntpservers",Config::File); ntpSrvs.setGroup("servers"); @@ -85,8 +85,7 @@ Ntp::~Ntp() ntpSrvs.writeEntry("count", srvCount); - for (int i = 0; i < srvCount; i++) - { - ntpSrvs.setGroup(QString::number(i)); - ntpSrvs.writeEntry( "name", ComboNtpSrv->text(i) ); + for (int i = 0; i < srvCount; i++){ + ntpSrvs.setGroup(QString::number(i)); + ntpSrvs.writeEntry( "name", ComboNtpSrv->text(i) ); } - Config cfg("ntp",Config::User); + Config cfg("ntp",Config::User); cfg.setGroup("settings"); @@ -94,3 +93,4 @@ Ntp::~Ntp() cfg.writeEntry( "minLookupDiff", SpinBoxMinLookupDelay->value() ); - cfg.writeEntry( "ntpRefreshFreq", SpinBoxNtpDelay->value() ); + cfg.writeEntry( "ntpRefreshFreq", SpinBoxNtpDelay->value() ); + cfg.writeEntry( "advancedFeatures", CheckBoxAdvSettings->isChecked() ); } @@ -354,2 +354,3 @@ void Ntp::showAdvancedFeatures(bool advMode) SpinBoxNtpDelay->show(); + Line1->show(); }else{ @@ -365,3 +366,5 @@ void Ntp::showAdvancedFeatures(bool advMode) SpinBoxNtpDelay->hide(); + Line1->hide(); }; + TabWidgetMain->show(); } |