Skip to content
Permalink
Browse files

Fixes #33339 : don't display "no data received" message if WCS downlo…

…ad has been canceled

(cherry picked from commit dfdb9cf)
  • Loading branch information
Julien Cabieces authored and nyalldawson committed Jan 24, 2020
1 parent e1b8f57 commit c14c6c892629b3072344ed85483ccf64c462b57b
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/providers/wcs/qgswcsprovider.cpp
@@ -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;
}

0 comments on commit c14c6c8

Please sign in to comment.
You can’t perform that action at this time.