diff options
author | alexzatsepin <az@mapswithme.com> | 2016-10-14 17:37:50 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-14 17:37:50 +0300 |
commit | cc252729f0128b61188d2c5e425c663c3dbddb53 (patch) | |
tree | 70fb0ec14d68523633a23b886158fe564a446bbc /map | |
parent | 93734c1369ffe03be1b6d6dc2a0e080ee02847c1 (diff) | |
parent | 887a040ef97b6afbc21d3c16f931dd3514024518 (diff) |
Merge pull request #4502 from ygorshenin/exposing-hotels
[search] HotelsClassifier can be used on the UI side now.
Diffstat (limited to 'map')
-rw-r--r-- | map/framework.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/map/framework.cpp b/map/framework.cpp index 95449f880c..10e33394c7 100644 --- a/map/framework.cpp +++ b/map/framework.cpp @@ -1154,7 +1154,7 @@ bool Framework::SearchInViewport(search::ViewportSearchParams const & params) static_cast<search::ViewportSearchCallback::Delegate &>(*this), [params](search::Results const & results) { if (results.IsEndMarker() && params.m_onCompleted) - GetPlatform().RunOnGuiThread([params]() { params.m_onCompleted(); }); + GetPlatform().RunOnGuiThread([params, results]() { params.m_onCompleted(results); }); }); SetCurrentPositionIfPossible(p); @@ -2673,7 +2673,9 @@ bool Framework::ParseEditorDebugCommand(search::SearchParams const & params) DebugPrint(types), types.GetBestType(), smd)); } params.m_onResults(results); - params.m_onResults(search::Results::GetEndMarker(false)); + + results.SetEndMarker(false /* isCancelled */); + params.m_onResults(results); return true; } else if (params.m_query == "?eclear") |