summaryrefslogtreecommitdiff
path: root/noncore/settings/netsystemtime/ntp.cpp
Unidiff
Diffstat (limited to 'noncore/settings/netsystemtime/ntp.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/settings/netsystemtime/ntp.cpp11
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
@@ -412,15 +412,24 @@ void Ntp::showAdvancedFeatures(bool advMode)
412 }; 412 };
413 TabWidgetMain->show(); 413 TabWidgetMain->show();
414} 414}
415 415
416 416
417void Ntp::accept( ){ 417void 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
428void 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