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
diff options
context:
space:
mode:
Diffstat (limited to 'android/jni/com/mapswithme/maps/bookmarks/data/BookmarkManager.cpp')
-rw-r--r--android/jni/com/mapswithme/maps/bookmarks/data/BookmarkManager.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/android/jni/com/mapswithme/maps/bookmarks/data/BookmarkManager.cpp b/android/jni/com/mapswithme/maps/bookmarks/data/BookmarkManager.cpp
index 63c47815a3..71aa94d393 100644
--- a/android/jni/com/mapswithme/maps/bookmarks/data/BookmarkManager.cpp
+++ b/android/jni/com/mapswithme/maps/bookmarks/data/BookmarkManager.cpp
@@ -19,10 +19,8 @@ void RemoveBookmark(int cat, int bmk)
BookmarkCategory * pCat = frm()->GetBmCategory(cat);
if (pCat)
{
- {
- BookmarkCategory::Guard guard(*pCat);
- guard.m_controller.DeleteUserMark(bmk);
- }
+ pCat->DeleteUserMark(bmk);
+ pCat->NotifyChanges();
pCat->SaveToKMLFile();
}
}
@@ -80,6 +78,7 @@ Java_com_mapswithme_maps_bookmarks_data_BookmarkManager_nativeDeleteTrack(
if (pCat)
{
pCat->DeleteTrack(trk);
+ pCat->NotifyChanges();
pCat->SaveToKMLFile();
}
}