diff options
author | vng <viktor.govako@gmail.com> | 2013-02-18 22:25:53 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:51:00 +0300 |
commit | d8f5301f4c9b18ed40f81ce8f28ef336572678c0 (patch) | |
tree | b3fc7fb4f3fc344b1c34e581d322f9af60ab2813 /qt | |
parent | e502fd04ddcac69e6352cf952d02488a44c12dfe (diff) |
[bookmarks] Handle timestamp in one function Framework::AddBookmark. Keep previous timestamp if bookmark is editing.
Diffstat (limited to 'qt')
-rw-r--r-- | qt/search_panel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qt/search_panel.cpp b/qt/search_panel.cpp index f0419d97be..5e07b2e357 100644 --- a/qt/search_panel.cpp +++ b/qt/search_panel.cpp @@ -148,8 +148,8 @@ void SearchPanel::OnSearchResult(ResultsT * res) if (e.GetResultType() == ResultT::RESULT_FEATURE) { // For debug purposes: add bookmarks for search results - frm.AddBookmark(SEARCH_CATEGORY, - Bookmark(e.GetFeatureCenter(), e.GetString(), "placemark-red")); + Bookmark bm(e.GetFeatureCenter(), e.GetString(), "placemark-red"); + frm.AddBookmark(SEARCH_CATEGORY, bm); m_pTable->setItem(rowCount, 0, create_item(QString::fromUtf8(e.GetFeatureType()))); |