author | tille <tille> | 2002-06-26 12:45:03 (UTC) |
---|---|---|
committer | tille <tille> | 2002-06-26 12:45:03 (UTC) |
commit | 541bbcbb89a9e6a054fb545a82739c0bcf7804fe (patch) (unidiff) | |
tree | e2d4278a88226849cc5d46d5f69502499dc94efc /noncore/settings/netsystemtime/settime.cpp | |
parent | 4b0e72bed1ead4e3c7af2209a11f34aa9209653c (diff) | |
download | opie-541bbcbb89a9e6a054fb545a82739c0bcf7804fe.zip opie-541bbcbb89a9e6a054fb545a82739c0bcf7804fe.tar.gz opie-541bbcbb89a9e6a054fb545a82739c0bcf7804fe.tar.bz2 |
settings...
Diffstat (limited to 'noncore/settings/netsystemtime/settime.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/netsystemtime/settime.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/noncore/settings/netsystemtime/settime.cpp b/noncore/settings/netsystemtime/settime.cpp index b456012..2398c08 100644 --- a/noncore/settings/netsystemtime/settime.cpp +++ b/noncore/settings/netsystemtime/settime.cpp | |||
@@ -261,16 +261,16 @@ void SetDateTime::setTime(QDateTime dt) | |||
261 | if ( myTv.tv_sec != -1 ) | 261 | if ( myTv.tv_sec != -1 ) |
262 | ::settimeofday( &myTv, 0 ); | 262 | ::settimeofday( &myTv, 0 ); |
263 | Global::writeHWClock(); | 263 | Global::writeHWClock(); |
264 | // since time has changed quickly load in the datebookdb | ||
265 | // to allow the alarm server to get a better grip on itself | ||
266 | // (example re-trigger alarms for when we travel back in time) | ||
267 | DateBookDB db; | ||
264 | } | 268 | } |
265 | 269 | ||
266 | void SetDateTime::updateSystem(int i) | 270 | void SetDateTime::updateSystem(int i) |
267 | { | 271 | { |
268 | qDebug("SetDateTime::updateSystem(int %i)",i); | 272 | qDebug("SetDateTime::updateSystem(int %i)",i); |
269 | writeSettings(); | 273 | writeSettings(); |
270 | // since time has changed quickly load in the datebookdb | ||
271 | // to allow the alarm server to get a better grip on itself | ||
272 | // (example re-trigger alarms for when we travel back in time) | ||
273 | // DateBookDB db; | ||
274 | 274 | ||
275 | // set the timezone for everyone else... | 275 | // set the timezone for everyone else... |
276 | QCopEnvelope setTimeZone( "QPE/System", "timeChange(QString)" ); | 276 | QCopEnvelope setTimeZone( "QPE/System", "timeChange(QString)" ); |
@@ -291,6 +291,10 @@ void SetDateTime::updateSystem(int i) | |||
291 | // Restore screensaver | 291 | // Restore screensaver |
292 | QCopEnvelope enableScreenSaver( "QPE/System", "setScreenSaverIntervals(int,int,int)" ); | 292 | QCopEnvelope enableScreenSaver( "QPE/System", "setScreenSaverIntervals(int,int,int)" ); |
293 | enableScreenSaver << -1 << -1 << -1; | 293 | enableScreenSaver << -1 << -1 << -1; |
294 | // since time has changed quickly load in the datebookdb | ||
295 | // to allow the alarm server to get a better grip on itself | ||
296 | // (example re-trigger alarms for when we travel back in time) | ||
297 | DateBookDB db; | ||
294 | 298 | ||
295 | } | 299 | } |
296 | 300 | ||