Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/map
diff options
context:
space:
mode:
authorYuri Gorshenin <y@maps.me>2016-10-13 21:08:29 +0300
committerYuri Gorshenin <y@maps.me>2016-10-14 15:53:52 +0300
commit22e25c603a8bef802a59c5f90b6b7304e0681f4b (patch)
tree245cba05ef249eb48d78f7526110a3bb1745e17d /map
parent3db6928a63942bafd1262bec0751eb72f0de3f2f (diff)
[search] HotelsClassifier can be used on the UI side now.
Diffstat (limited to 'map')
-rw-r--r--map/framework.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/map/framework.cpp b/map/framework.cpp
index a39cc69d6a..0d99a8be99 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);
@@ -2665,7 +2665,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")