Skip to content

Commit

Permalink
Skip saving asset if request has failed
Browse files Browse the repository at this point in the history
  • Loading branch information
uclaros committed Oct 23, 2024
1 parent 238db8f commit ffa0f1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/stac/qgsstacdataitemguiprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,9 @@ void QgsStacDataItemGuiProvider::downloadAssets( QgsDataItem *item, QgsDataItemG
connect( fetcher, &QgsNetworkContentFetcherTask::fetched, item, [fetcher, folder, context]
{
QNetworkReply *reply = fetcher->reply();
if ( !reply )
if ( !reply || reply->error() != QNetworkReply::NoError )
{
// canceled
// canceled or failed
return;
}
else
Expand Down

0 comments on commit ffa0f1e

Please sign in to comment.