diff --git a/src/providers/wfs/qgsoapifprovider.cpp b/src/providers/wfs/qgsoapifprovider.cpp index c8d65383daaf..d193761ccaa0 100644 --- a/src/providers/wfs/qgsoapifprovider.cpp +++ b/src/providers/wfs/qgsoapifprovider.cpp @@ -690,10 +690,9 @@ void QgsOapifFeatureDownloaderImpl::run( bool serializeFeatures, long long maxFe } } - url = mShared->appendExtraQueryParameters( url ); - while ( !url.isEmpty() ) { + url = mShared->appendExtraQueryParameters( url ); if ( maxTotalFeatures > 0 && totalDownloadedFeatureCount >= maxTotalFeatures ) { @@ -721,7 +720,6 @@ void QgsOapifFeatureDownloaderImpl::run( bool serializeFeatures, long long maxFe break; } url = itemsRequest.nextUrl(); - url = mShared->appendExtraQueryParameters( url ); // Consider if we should display a progress dialog // We can only do that if we know how many features will be downloaded