forked from qt-creator/qt-creator
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: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user