Don't show update dialog if update request failed

This commit is contained in:
baldurk
2018-11-22 12:16:34 +00:00
parent a2c1ef8fd0
commit 13538a4b1c
+3
View File
@@ -1265,6 +1265,9 @@ void MainWindow::CheckUpdates(bool forceCheck, UpdateResultMethod callback)
});
QObject::connect(req, &QNetworkReply::finished, [this, req, callback]() {
if(req->error() != QNetworkReply::NoError)
return;
QString response = QString::fromUtf8(req->readAll());
statusText->setText(QString());