Commit 4ba5a058 authored by Kai Koehne's avatar Kai Koehne
Browse files

Updater: Only try to fetch updates once (even if it fails)



Do not repeatedly try to fetch updates, but only once.

Change-Id: Id177b6677077e97132c7b40af3de35015a9c7658
Reviewed-by: default avatarEike Ziller <eike.ziller@digia.com>
parent 66aa30eb
......@@ -246,12 +246,13 @@ QDomDocument UpdateInfoPlugin::update()
QDomDocument updates;
if (updater.exitStatus() != QProcess::CrashExit) {
d->m_timer.stop();
d->m_lastDayChecked = QDate::currentDate();
updates.setContent(updater.readAllStandardOutput());
saveSettings(); // force writing out the last update date
} else {
qWarning() << "Updater application crashed.";
}
d->m_lastDayChecked = QDate::currentDate();
return updates;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment