That's an undefined behavior.
Since we don't use the return value anyway, we should just use start()
void AccountState::tagLastSuccessfullETagRequest()
{
- _timeSinceLastETagCheck.restart();
+ _timeSinceLastETagCheck.start();
}
void AccountState::checkConnectivity()
if (newGuiLogCount > 0) {
// restart the gui log timer now that we show a notification
- _guiLogTimer.restart();
+ _guiLogTimer.start();
// Assemble a tray notification
QString msg = tr("You received %n new notification(s) from %2.", "", accNotified[accNotified.keys().at(0)]).arg(accNotified.keys().at(0));
}
_csyncUnavail = false;
- _timeSinceLastSyncStart.restart();
+ _timeSinceLastSyncStart.start();
_syncResult.setStatus(SyncResult::SyncPrepare);
emit syncStateChange();
QTimer::singleShot(200, this, SLOT(slotEmitFinishedDelayed()));
_lastSyncDuration = _timeSinceLastSyncStart.elapsed();
- _timeSinceLastSyncDone.restart();
+ _timeSinceLastSyncDone.start();
// Increment the follow-up sync counter if necessary.
if (anotherSyncNeeded == ImmediateFollowUp) {
if (updateJob) {
// Don't wanna overload the UI
if (!updateJob->_lastUpdateProgressCallbackCall.isValid()) {
- updateJob->_lastUpdateProgressCallbackCall.restart(); // first call
+ updateJob->_lastUpdateProgressCallbackCall.start(); // first call
} else if (updateJob->_lastUpdateProgressCallbackCall.elapsed() < 200) {
return;
} else {
- updateJob->_lastUpdateProgressCallbackCall.restart();
+ updateJob->_lastUpdateProgressCallbackCall.start();
}
QByteArray pPath(dirUrl);