[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:
vng 2015-10-12 16:52:53 +03:00
parent f4a4c4f721
commit 8d9f017914

View file

@ -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
{