Skip to content

Commit

Permalink
Fixes #33339 : don't display "no data received" message if WCS downlo…
Browse files Browse the repository at this point in the history
…ad has been canceled

(cherry picked from commit dfdb9cf)
  • Loading branch information
Julien Cabieces authored and nyalldawson committed Feb 12, 2020
1 parent e1b8f57 commit c14c6c8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/providers/wcs/qgswcsprovider.cpp
Expand Up @@ -808,7 +808,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 c14c6c8

Please sign in to comment.