forked from organicmaps/organicmaps
[search] If there are no slots for results remaining, finish early.
This commit is contained in:
parent
86b5bfa93b
commit
1b39a479e9
1 changed files with 5 additions and 0 deletions
|
@ -176,6 +176,11 @@ void Query::Search(function<void (Result const &)> const & f)
|
|||
return;
|
||||
|
||||
FlushResults(f);
|
||||
if (m_resultsRemaining == 0 || m_queryText.empty())
|
||||
{
|
||||
f(Result(string(), string())); // Send last search result marker.
|
||||
return;
|
||||
}
|
||||
|
||||
// Feature matching.
|
||||
FeatureProcessor featureProcessor(*this);
|
||||
|
|
Loading…
Add table
Reference in a new issue