Skip to content
Permalink
Browse files

Skip extra request if there are enough results

If we already have the maximum number of results with an exact match request
we do not need to send an extra request and list one additional result.
  • Loading branch information
m-kuhn committed Nov 18, 2020
1 parent 471062c commit ceb4238508efa9109f728ccb0c5ff14a6f3017c4
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/app/locator/qgsinbuiltlocatorfilters.cpp
@@ -625,6 +625,8 @@ void QgsAllLayersFeaturesLocatorFilter::fetchResults( const QString &string, con
if ( foundInCurrentLayer >= mMaxResultsPerLayer )
break;
}
if ( foundInCurrentLayer >= mMaxResultsPerLayer )
continue;
if ( foundInTotal >= mMaxTotalResults )
break;

0 comments on commit ceb4238

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