Skip to content

Commit

Permalink
[afs] More responsive cancelation for feature requests
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Feb 20, 2018
1 parent 668af8c commit 9471c5d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/providers/arcgisrest/qgsafsfeatureiterator.cpp
Expand Up @@ -148,7 +148,10 @@ bool QgsAfsFeatureIterator::fetchFeature( QgsFeature &f )
if ( mRemainingFeatureIds.empty() )
return false;

bool result = mSource->sharedData()->getFeature( mRequest.filterFid(), f );
bool result = mSource->sharedData()->getFeature( mRequest.filterFid(), f, QgsRectangle(), mInterruptionChecker );
if ( mInterruptionChecker && mInterruptionChecker->isCanceled() )
return false;

geometryToDestinationCrs( f, mTransform );
f.setValid( result );
mRemainingFeatureIds.removeAll( f.id() );
Expand Down

0 comments on commit 9471c5d

Please sign in to comment.