mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-28 06:49:57 -06:00
dbhub: Do no show error message when download was cancelled
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user