-rw-r--r-- | noncore/settings/netsystemtime/ntp.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/noncore/settings/netsystemtime/ntp.cpp b/noncore/settings/netsystemtime/ntp.cpp index 6c5aaf5..9572993 100644 --- a/noncore/settings/netsystemtime/ntp.cpp +++ b/noncore/settings/netsystemtime/ntp.cpp | |||
@@ -146,26 +146,26 @@ void Ntp::ntpFinished(OProcess *p) | |||
146 | if (p->exitStatus()!=0 || !p->normalExit()) | 146 | if (p->exitStatus()!=0 || !p->normalExit()) |
147 | { | 147 | { |
148 | slotProbeNtpServer(); | 148 | slotProbeNtpServer(); |
149 | return; | 149 | return; |
150 | } | 150 | } |
151 | 151 | ||
152 | Global::writeHWClock(); | 152 | Global::writeHWClock(); |
153 | // since time has changed quickly load in the datebookdb | 153 | // since time has changed quickly load in the datebookdb |
154 | // to allow the alarm server to get a better grip on itself | 154 | // to allow the alarm server to get a better grip on itself |
155 | // (example re-trigger alarms for when we travel back in time) | 155 | // (example re-trigger alarms for when we travel back in time) |
156 | DateBookDB db; | 156 | DateBookDB db; |
157 | 157 | ||
158 | QCopEnvelope timeApplet( "QPE/TaskBar", "reloadApplets()" ); | 158 | // QCopEnvelope timeApplet( "QPE/TaskBar", "reloadApplets()" ); |
159 | timeApplet << ""; | 159 | // timeApplet << ""; |
160 | 160 | ||
161 | Config cfg("ntp",Config::User); | 161 | Config cfg("ntp",Config::User); |
162 | cfg.setGroup("lookups"); | 162 | cfg.setGroup("lookups"); |
163 | int lastLookup = cfg.readNumEntry("time",0); | 163 | int lastLookup = cfg.readNumEntry("time",0); |
164 | int lookupCount = cfg.readNumEntry("count",0); | 164 | int lookupCount = cfg.readNumEntry("count",0); |
165 | bool lastNtp = cfg.readBoolEntry("lastNtp",false); | 165 | bool lastNtp = cfg.readBoolEntry("lastNtp",false); |
166 | int time = TimeConversion::toUTC( QDateTime::currentDateTime() ); | 166 | int time = TimeConversion::toUTC( QDateTime::currentDateTime() ); |
167 | cfg.writeEntry("time", time); | 167 | cfg.writeEntry("time", time); |
168 | 168 | ||
169 | float timeShift = getTimeShift(); | 169 | float timeShift = getTimeShift(); |
170 | if (timeShift == 0.0) return; | 170 | if (timeShift == 0.0) return; |
171 | int secsSinceLast = time - lastLookup; | 171 | int secsSinceLast = time - lastLookup; |
@@ -320,13 +320,13 @@ void Ntp::receive(const QCString &msg, const QByteArray &arg) | |||
320 | } | 320 | } |
321 | if ( msg == "setPredictedTime(QString)" ) | 321 | if ( msg == "setPredictedTime(QString)" ) |
322 | { | 322 | { |
323 | setPredictTime(); | 323 | setPredictTime(); |
324 | }else{ | 324 | }else{ |
325 | qDebug("Ntp::receive: Huh what do ya want"); | 325 | qDebug("Ntp::receive: Huh what do ya want"); |
326 | } | 326 | } |
327 | } | 327 | } |
328 | 328 | ||
329 | void Ntp::setDocument(const QString &fileName) | 329 | void Ntp::setDocument(const QString &fileName) |
330 | { | 330 | { |
331 | 331 | ||
332 | } \ No newline at end of file | 332 | } |