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 | |||
@@ -258,22 +258,22 @@ void SetDateTime::setTime(QDateTime dt) | |||
258 | cfg.writeEntry("time", t ); | 258 | cfg.writeEntry("time", t ); |
259 | myTv.tv_usec = 0; | 259 | myTv.tv_usec = 0; |
260 | 260 | ||
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)" ); |
277 | setTimeZone << tz->currentZone(); | 277 | setTimeZone << tz->currentZone(); |
278 | 278 | ||
279 | // AM/PM setting and notify time changed | 279 | // AM/PM setting and notify time changed |
@@ -288,12 +288,16 @@ void SetDateTime::updateSystem(int i) | |||
288 | QCopEnvelope setDateFormat( "QPE/System", "setDateFormat(DateFormat)" ); | 288 | QCopEnvelope setDateFormat( "QPE/System", "setDateFormat(DateFormat)" ); |
289 | setDateFormat << date_formats[dateFormatCombo->currentItem()]; | 289 | setDateFormat << date_formats[dateFormatCombo->currentItem()]; |
290 | 290 | ||
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 | ||
297 | void SetDateTime::tzChange( const QString &tz ) | 301 | void SetDateTime::tzChange( const QString &tz ) |
298 | { | 302 | { |
299 | qDebug("SetDateTime::tzChange"); | 303 | qDebug("SetDateTime::tzChange"); |