-rw-r--r-- | noncore/settings/netsystemtime/ntp.cpp | 7 |
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 @@ -84,6 +84,5 @@ Ntp::~Ntp() 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) ); @@ -94,4 +93,5 @@ Ntp::~Ntp() cfg.writeEntry( "minLookupDiff", SpinBoxMinLookupDelay->value() ); cfg.writeEntry( "ntpRefreshFreq", SpinBoxNtpDelay->value() ); + cfg.writeEntry( "advancedFeatures", CheckBoxAdvSettings->isChecked() ); } @@ -353,4 +353,5 @@ void Ntp::showAdvancedFeatures(bool advMode) TextLabel3_3->show(); SpinBoxNtpDelay->show(); + Line1->show(); }else{ TabWidgetMain->removePage( tabPredict ); @@ -364,4 +365,6 @@ void Ntp::showAdvancedFeatures(bool advMode) TextLabel3_3->hide(); SpinBoxNtpDelay->hide(); + Line1->hide(); }; + TabWidgetMain->show(); } |