diff options
author | ExMix <rahuba.youri@mapswithme.com> | 2014-05-19 12:01:23 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:15:40 +0300 |
commit | e9f7e1d796d22ba2fab598ab2cd7e3d18d34f010 (patch) | |
tree | 7c2e04ce5284cfd18ba2e69db33c063b4890442d /qt/search_panel.cpp | |
parent | 0497ac2bdefb5e7af04b55b4138705d0e21ce00c (diff) |
review fixes
Diffstat (limited to 'qt/search_panel.cpp')
-rw-r--r-- | qt/search_panel.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/qt/search_panel.cpp b/qt/search_panel.cpp index 8be3aced46..188c60b35e 100644 --- a/qt/search_panel.cpp +++ b/qt/search_panel.cpp @@ -129,8 +129,10 @@ void SearchPanel::OnSearchResult(ResultsT * res) if (e.GetResultType() != ResultT::RESULT_SUGGESTION) { - UserMark * mark = manager.UserMarksAddMark(UserMarkContainer::SEARCH_MARK, e.GetFeatureCenter()); - mark->InjectCustomData(new SearchCustomData(e.GetString(), "", "")); + SearchMarkPoint * mark = static_cast<SearchMarkPoint *>(manager.UserMarksAddMark(UserMarkContainer::SEARCH_MARK, e.GetFeatureCenter())); + search::AddressInfo info; + info.MakeFrom(e); + mark->SetInfo(info); // For debug purposes: add bookmarks for search results m_pTable->setItem(rowCount, 0, create_item(QString::fromUtf8(e.GetFeatureType()))); |