diff --git a/src/Updater.cpp b/src/Updater.cpp index 22c38f8..f103e6b 100644 --- a/src/Updater.cpp +++ b/src/Updater.cpp @@ -332,11 +332,16 @@ void Updater::onReply (QNetworkReply* reply) /* There was a network error */ if (reply->error() != QNetworkReply::NoError) + { + setUpdateAvailable(false); + emit checkingFinished (url()); return; + } /* The application wants to interpret the appcast by itself */ if (customAppcast()) { emit appcastDownloaded (url(), reply->readAll()); + emit checkingFinished (url()); return; } @@ -345,7 +350,11 @@ void Updater::onReply (QNetworkReply* reply) /* JSON is invalid */ if (document.isNull()) + { + setUpdateAvailable(false); + emit checkingFinished (url()); return; + } /* Get the platform information */ QJsonObject updates = document.object().value ("updates").toObject();