author | harlekin <harlekin> | 2002-08-30 13:34:40 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-08-30 13:34:40 (UTC) |
commit | 6fddd961f703acc7b60fb49d5da6ee1a0ab01019 (patch) (unidiff) | |
tree | ff8652921450c3f59c6b97dac4590ed8588a9119 | |
parent | 131ccdb3f2b18cdf6f0d7ce2eb9b31016ec3f1aa (diff) | |
download | opie-6fddd961f703acc7b60fb49d5da6ee1a0ab01019.zip opie-6fddd961f703acc7b60fb49d5da6ee1a0ab01019.tar.gz opie-6fddd961f703acc7b60fb49d5da6ee1a0ab01019.tar.bz2 |
do not kill all applets when setting the time .-)
-rw-r--r-- | noncore/settings/netsystemtime/settime.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/noncore/settings/netsystemtime/settime.cpp b/noncore/settings/netsystemtime/settime.cpp index e3b2ddd..d1dc5b8 100644 --- a/noncore/settings/netsystemtime/settime.cpp +++ b/noncore/settings/netsystemtime/settime.cpp | |||
@@ -259,26 +259,26 @@ void SetDateTime::setTime(QDateTime dt) | |||
259 | struct timeval myTv; | 259 | struct timeval myTv; |
260 | myTv.tv_sec = t; | 260 | myTv.tv_sec = t; |
261 | cfg.writeEntry("time", t ); | 261 | cfg.writeEntry("time", t ); |
262 | myTv.tv_usec = 0; | 262 | myTv.tv_usec = 0; |
263 | 263 | ||
264 | if ( myTv.tv_sec != -1 ) | 264 | if ( myTv.tv_sec != -1 ) |
265 | ::settimeofday( &myTv, 0 ); | 265 | ::settimeofday( &myTv, 0 ); |
266 | Global::writeHWClock(); | 266 | Global::writeHWClock(); |
267 | // since time has changed quickly load in the datebookdb | 267 | // since time has changed quickly load in the datebookdb |
268 | // to allow the alarm server to get a better grip on itself | 268 | // to allow the alarm server to get a better grip on itself |
269 | // (example re-trigger alarms for when we travel back in time) | 269 | // (example re-trigger alarms for when we travel back in time) |
270 | DateBookDB db; | 270 | DateBookDB db; |
271 | QCopEnvelope timeApplet( "QPE/TaskBar", "reloadApplets()" ); | 271 | //QCopEnvelope timeApplet( "QPE/TaskBar", "reloadApplets()" ); |
272 | timeApplet << ""; | 272 | //timeApplet << ""; |
273 | // Restore screensaver | 273 | // Restore screensaver |
274 | QCopEnvelope enableScreenSaver( "QPE/System", "setScreenSaverIntervals(int,int,int)" ); | 274 | QCopEnvelope enableScreenSaver( "QPE/System", "setScreenSaverIntervals(int,int,int)" ); |
275 | enableScreenSaver << -1 << -1 << -1; | 275 | enableScreenSaver << -1 << -1 << -1; |
276 | } | 276 | } |
277 | 277 | ||
278 | void SetDateTime::updateSystem(int i) | 278 | void SetDateTime::updateSystem(int i) |
279 | { | 279 | { |
280 | // really turn off the screensaver before doing anything | 280 | // really turn off the screensaver before doing anything |
281 | { | 281 | { |
282 | // Needs to be encased in { } so that it deconstructs and sends | 282 | // Needs to be encased in { } so that it deconstructs and sends |
283 | QCopEnvelope disableScreenSaver( "QPE/System", "setScreenSaverIntervals(int,int,int)" ); | 283 | QCopEnvelope disableScreenSaver( "QPE/System", "setScreenSaverIntervals(int,int,int)" ); |
284 | disableScreenSaver << 0 << 0 << 0; | 284 | disableScreenSaver << 0 << 0 << 0; |
@@ -289,25 +289,25 @@ void SetDateTime::updateSystem(int i) | |||
289 | // set the timezone for everyone else... | 289 | // set the timezone for everyone else... |
290 | QCopEnvelope setTimeZone( "QPE/System", "timeChange(QString)" ); | 290 | QCopEnvelope setTimeZone( "QPE/System", "timeChange(QString)" ); |
291 | setTimeZone << tz->currentZone(); | 291 | setTimeZone << tz->currentZone(); |
292 | 292 | ||
293 | // AM/PM setting and notify time changed | 293 | // AM/PM setting and notify time changed |
294 | QCopEnvelope setClock( "QPE/System", "clockChange(bool)" ); | 294 | QCopEnvelope setClock( "QPE/System", "clockChange(bool)" ); |
295 | setClock << ampmCombo->currentItem(); | 295 | setClock << ampmCombo->currentItem(); |
296 | 296 | ||
297 | // Notify everyone what day we prefer to start the week on. | 297 | // Notify everyone what day we prefer to start the week on. |
298 | QCopEnvelope setWeek( "QPE/System", "weekChange(bool)" ); | 298 | QCopEnvelope setWeek( "QPE/System", "weekChange(bool)" ); |
299 | setWeek << weekStartCombo->currentItem(); | 299 | setWeek << weekStartCombo->currentItem(); |
300 | 300 | ||
301 | // Notify everyone what date format to use | 301 | // Notify everyone what date format to use |
302 | QCopEnvelope setDateFormat( "QPE/System", "setDateFormat(DateFormat)" ); | 302 | QCopEnvelope setDateFormat( "QPE/System", "setDateFormat(DateFormat)" ); |
303 | setDateFormat << date_formats[dateFormatCombo->currentItem()]; | 303 | setDateFormat << date_formats[dateFormatCombo->currentItem()]; |
304 | 304 | ||
305 | // Restore screensaver | 305 | // Restore screensaver |
306 | QCopEnvelope enableScreenSaver( "QPE/System", "setScreenSaverIntervals(int,int,int)" ); | 306 | QCopEnvelope enableScreenSaver( "QPE/System", "setScreenSaverIntervals(int,int,int)" ); |
307 | enableScreenSaver << -1 << -1 << -1; | 307 | enableScreenSaver << -1 << -1 << -1; |
308 | // since time has changed quickly load in the datebookdb | 308 | // since time has changed quickly load in the datebookdb |
309 | // to allow the alarm server to get a better grip on itself | 309 | // to allow the alarm server to get a better grip on itself |
310 | // (example re-trigger alarms for when we travel back in time) | 310 | // (example re-trigger alarms for when we travel back in time) |
311 | DateBookDB db; | 311 | DateBookDB db; |
312 | 312 | ||
313 | } | 313 | } |