dbhub: Do no show error message when download was cancelled

This commit is contained in:
Martin Kleusberg
2020-07-15 14:18:22 +02:00
parent 2ea87e7e4a
commit 10214b31e5

View File

@@ -169,8 +169,13 @@ void RemoteDatabase::gotReply(QNetworkReply* reply)
// Check if request was successful
if(reply->error() != QNetworkReply::NoError)
{
QMessageBox::warning(nullptr, qApp->applicationName(),
reply->errorString() + "\n" + reply->readAll());
// Do not show error message when operation was cancelled on purpose
if(reply->error() != QNetworkReply::OperationCanceledError)
{
QMessageBox::warning(nullptr, qApp->applicationName(),
reply->errorString() + "\n" + reply->readAll());
}
reply->deleteLater();
return;
}