|
|
@ -96,6 +96,7 @@ void QGCFileDownload::_downloadFinished(void) |
|
|
|
// When an error occurs or the user cancels the download, we still end up here. So bail out in
|
|
|
|
// When an error occurs or the user cancels the download, we still end up here. So bail out in
|
|
|
|
// those cases.
|
|
|
|
// those cases.
|
|
|
|
if (reply->error() != QNetworkReply::NoError) {
|
|
|
|
if (reply->error() != QNetworkReply::NoError) {
|
|
|
|
|
|
|
|
reply->deleteLater(); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -128,6 +129,8 @@ void QGCFileDownload::_downloadFinished(void) |
|
|
|
qWarning() << errorMsg; |
|
|
|
qWarning() << errorMsg; |
|
|
|
emit error(errorMsg); |
|
|
|
emit error(errorMsg); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
reply->deleteLater(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/// @brief Called when an error occurs during download
|
|
|
|
/// @brief Called when an error occurs during download
|
|
|
|