-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() | |||
80 | { | 80 | { |
81 | delete ntpProcess; | 81 | delete ntpProcess; |
82 | Config ntpSrvs("/etc/ntpservers",Config::File); | 82 | Config ntpSrvs("/etc/ntpservers",Config::File); |
83 | ntpSrvs.setGroup("servers"); | 83 | ntpSrvs.setGroup("servers"); |
@@ -85,8 +85,7 @@ Ntp::~Ntp() | |||
85 | ntpSrvs.writeEntry("count", srvCount); | 85 | ntpSrvs.writeEntry("count", srvCount); |
86 | for (int i = 0; i < srvCount; i++) | 86 | for (int i = 0; i < srvCount; i++){ |
87 | { | 87 | ntpSrvs.setGroup(QString::number(i)); |
88 | ntpSrvs.setGroup(QString::number(i)); | 88 | ntpSrvs.writeEntry( "name", ComboNtpSrv->text(i) ); |
89 | ntpSrvs.writeEntry( "name", ComboNtpSrv->text(i) ); | ||
90 | } | 89 | } |
91 | Config cfg("ntp",Config::User); | 90 | Config cfg("ntp",Config::User); |
92 | cfg.setGroup("settings"); | 91 | cfg.setGroup("settings"); |
@@ -94,3 +93,4 @@ Ntp::~Ntp() | |||
94 | cfg.writeEntry( "minLookupDiff", SpinBoxMinLookupDelay->value() ); | 93 | cfg.writeEntry( "minLookupDiff", SpinBoxMinLookupDelay->value() ); |
95 | cfg.writeEntry( "ntpRefreshFreq", SpinBoxNtpDelay->value() ); | 94 | cfg.writeEntry( "ntpRefreshFreq", SpinBoxNtpDelay->value() ); |
95 | cfg.writeEntry( "advancedFeatures", CheckBoxAdvSettings->isChecked() ); | ||
96 | } | 96 | } |
@@ -354,2 +354,3 @@ void Ntp::showAdvancedFeatures(bool advMode) | |||
354 | SpinBoxNtpDelay->show(); | 354 | SpinBoxNtpDelay->show(); |
355 | Line1->show(); | ||
355 | }else{ | 356 | }else{ |
@@ -365,3 +366,5 @@ void Ntp::showAdvancedFeatures(bool advMode) | |||
365 | SpinBoxNtpDelay->hide(); | 366 | SpinBoxNtpDelay->hide(); |
367 | Line1->hide(); | ||
366 | }; | 368 | }; |
369 | TabWidgetMain->show(); | ||
367 | } | 370 | } |