forked from organicmaps/organicmaps
[search] Hot fix for tablet layout search (viewport only mode). Will increase search viewport until get at least 30 results.
This commit is contained in:
parent
f4a4c4f721
commit
8d9f017914
1 changed files with 3 additions and 2 deletions
|
@ -239,7 +239,8 @@ void Engine::SearchAsync()
|
|||
if (res.GetCount() > 0)
|
||||
EmitResults(params, res);
|
||||
}
|
||||
else
|
||||
|
||||
if (res.GetCount() < RESULTS_COUNT)
|
||||
{
|
||||
while (!m_query->IsCancelled())
|
||||
{
|
||||
|
@ -266,7 +267,7 @@ void Engine::SearchAsync()
|
|||
|
||||
// Make additional search in whole mwm when not enough results (only for non-empty query).
|
||||
size_t const count = res.GetCount();
|
||||
if (!viewportSearch && !m_query->IsCancelled() && count < RESULTS_COUNT)
|
||||
if (!m_query->IsCancelled() && count < RESULTS_COUNT)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue