Skip to content

Commit

Permalink
Fixes qgis#33339 : don't display "no data received" message if WCS do…
Browse files Browse the repository at this point in the history
…wnload has been canceled
  • Loading branch information
Julien Cabieces authored and nyalldawson committed Feb 7, 2020
1 parent b75acc7 commit dfdb9cf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/providers/wcs/qgswcsprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,10 @@ void QgsWcsProvider::getCache( int bandNo, QgsRectangle const &viewExtent, int
QgsDebugMsg( QStringLiteral( "%1 bytes received" ).arg( mCachedData.size() ) );
if ( mCachedData.isEmpty() )
{
QgsMessageLog::logMessage( tr( "No data received" ), tr( "WCS" ) );
if ( !feedback || !feedback->isCanceled() )
{
QgsMessageLog::logMessage( tr( "No data received" ), tr( "WCS" ) );
}
clearCache();
return;
}
Expand Down

0 comments on commit dfdb9cf

Please sign in to comment.