summaryrefslogtreecommitdiff
authortille <tille>2002-10-21 21:52:48 (UTC)
committer tille <tille>2002-10-21 21:52:48 (UTC)
commit5bcd4ccebd86f912c693de16675da44d21e11d94 (patch) (side-by-side diff)
tree069d23db3e886319f0a76071609d11b814bd4bfb
parent21d29dbf8a9c1a12c7c23f96b80307e87ffaa50a (diff)
downloadopie-5bcd4ccebd86f912c693de16675da44d21e11d94.zip
opie-5bcd4ccebd86f912c693de16675da44d21e11d94.tar.gz
opie-5bcd4ccebd86f912c693de16675da44d21e11d94.tar.bz2
saves feature settings now
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/settings/netsystemtime/ntp.cpp7
1 files changed, 5 insertions, 2 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
@@ -82,18 +82,18 @@ Ntp::~Ntp()
Config ntpSrvs("/etc/ntpservers",Config::File);
ntpSrvs.setGroup("servers");
int srvCount = ComboNtpSrv->count();
ntpSrvs.writeEntry("count", srvCount);
- for (int i = 0; i < srvCount; i++)
- {
+ for (int i = 0; i < srvCount; i++){
ntpSrvs.setGroup(QString::number(i));
ntpSrvs.writeEntry( "name", ComboNtpSrv->text(i) );
}
Config cfg("ntp",Config::User);
cfg.setGroup("settings");
cfg.writeEntry("ntpServer", ComboNtpSrv->currentItem());
cfg.writeEntry( "minLookupDiff", SpinBoxMinLookupDelay->value() );
cfg.writeEntry( "ntpRefreshFreq", SpinBoxNtpDelay->value() );
+ cfg.writeEntry( "advancedFeatures", CheckBoxAdvSettings->isChecked() );
}
bool Ntp::ntpDelayElapsed()
{
@@ -351,8 +351,9 @@ void Ntp::showAdvancedFeatures(bool advMode)
SpinBoxMinLookupDelay->show();
TextLabel2->show();
TextLabel3_3->show();
SpinBoxNtpDelay->show();
+ Line1->show();
}else{
TabWidgetMain->removePage( tabPredict );
TabWidgetMain->removePage( tabNtp );
TextLabel1_2_2->hide();
@@ -362,6 +363,8 @@ void Ntp::showAdvancedFeatures(bool advMode)
SpinBoxMinLookupDelay->hide();
TextLabel2->hide();
TextLabel3_3->hide();
SpinBoxNtpDelay->hide();
+ Line1->hide();
};
+ TabWidgetMain->show();
}