Diffstat (limited to 'noncore/settings/netsystemtime/ntp.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/netsystemtime/ntp.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/noncore/settings/netsystemtime/ntp.cpp b/noncore/settings/netsystemtime/ntp.cpp index 53dbe46..551cedc 100644 --- a/noncore/settings/netsystemtime/ntp.cpp +++ b/noncore/settings/netsystemtime/ntp.cpp | |||
@@ -406,21 +406,30 @@ void Ntp::showAdvancedFeatures(bool advMode) | |||
406 | TextLabel1_2->hide(); | 406 | TextLabel1_2->hide(); |
407 | SpinBoxMinLookupDelay->hide(); | 407 | SpinBoxMinLookupDelay->hide(); |
408 | TextLabel2->hide(); | 408 | TextLabel2->hide(); |
409 | TextLabel3_3->hide(); | 409 | TextLabel3_3->hide(); |
410 | SpinBoxNtpDelay->hide(); | 410 | SpinBoxNtpDelay->hide(); |
411 | Line1->hide(); | 411 | Line1->hide(); |
412 | }; | 412 | }; |
413 | TabWidgetMain->show(); | 413 | TabWidgetMain->show(); |
414 | } | 414 | } |
415 | 415 | ||
416 | 416 | ||
417 | void Ntp::accept( ){ | 417 | void Ntp::accept( ){ |
418 | qDebug("accepted"); | 418 | qDebug("saving"); |
419 | //SetTimeDate | 419 | //SetTimeDate |
420 | commitTime(); | 420 | commitTime(); |
421 | writeSettings(); | 421 | writeSettings(); |
422 | updateSystem(); | 422 | updateSystem(); |
423 | // Ntp | 423 | // Ntp |
424 | saveConfig(); | 424 | saveConfig(); |
425 | qApp->quit(); | 425 | qApp->quit(); |
426 | } \ No newline at end of file | 426 | } \ No newline at end of file |
427 | |||
428 | void Ntp::reject( ){ | ||
429 | qDebug("_oldTimeZone %s",_oldTimeZone.latin1()); | ||
430 | if (!_oldTimeZone.isEmpty()){ | ||
431 | qDebug("reverting timezone"); | ||
432 | tzChange(_oldTimeZone); | ||
433 | commitTime(); | ||
434 | } | ||
435 | } \ No newline at end of file | ||