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/iphone
diff options
context:
space:
mode:
authorvng <viktor.govako@gmail.com>2013-02-18 22:25:53 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:51:00 +0300
commitd8f5301f4c9b18ed40f81ce8f28ef336572678c0 (patch)
treeb3fc7fb4f3fc344b1c34e581d322f9af60ab2813 /iphone
parente502fd04ddcac69e6352cf952d02488a44c12dfe (diff)
[bookmarks] Handle timestamp in one function Framework::AddBookmark. Keep previous timestamp if bookmark is editing.
Diffstat (limited to 'iphone')
-rw-r--r--iphone/Maps/Bookmarks/BalloonView.mm3
1 files changed, 2 insertions, 1 deletions
diff --git a/iphone/Maps/Bookmarks/BalloonView.mm b/iphone/Maps/Bookmarks/BalloonView.mm
index 57e07c7b89..915ab452e6 100644
--- a/iphone/Maps/Bookmarks/BalloonView.mm
+++ b/iphone/Maps/Bookmarks/BalloonView.mm
@@ -226,12 +226,13 @@
// If coordinates are be the same, bookmark is automatically replaced
Bookmark bm(m2::PointD(self.globalPosition.x, self.globalPosition.y),
[self.title UTF8String], [self.color UTF8String]);
- bm.SetTimeStamp(time(0));
+
BookmarkCategory * cat = GetFramework().AddBookmark([self.setName UTF8String], bm);
// Enable category visibility if it was turned off, so user can see newly added or edited bookmark
if (!cat->IsVisible())
cat->SetVisible(true);
+
// Save all changes
cat->SaveToKMLFile();
}