summaryrefslogtreecommitdiff
path: root/noncore/settings/netsystemtime/ntp.cpp
authortille <tille>2002-11-16 17:42:37 (UTC)
committer tille <tille>2002-11-16 17:42:37 (UTC)
commit0861a25d4f28be8a3ba794eafca9f29eac3cc7c1 (patch) (unidiff)
tree0e78a2019fa62f803f6d61683b0daaeb4e810fd7 /noncore/settings/netsystemtime/ntp.cpp
parent55f437bb3caaeec328bce4e2d00818780f1b4aa2 (diff)
downloadopie-0861a25d4f28be8a3ba794eafca9f29eac3cc7c1.zip
opie-0861a25d4f28be8a3ba794eafca9f29eac3cc7c1.tar.gz
opie-0861a25d4f28be8a3ba794eafca9f29eac3cc7c1.tar.bz2
first try to revert timezones on reject...
... not working i am too stupid ;)
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
@@ -415,7 +415,7 @@ void Ntp::showAdvancedFeatures(bool advMode)
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();
@@ -424,3 +424,12 @@ void Ntp::accept( ){
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