diff options
Diffstat (limited to 'android/jni/com/mapswithme/maps/bookmarks/data/BookmarkCategory.cpp')
-rw-r--r-- | android/jni/com/mapswithme/maps/bookmarks/data/BookmarkCategory.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/android/jni/com/mapswithme/maps/bookmarks/data/BookmarkCategory.cpp b/android/jni/com/mapswithme/maps/bookmarks/data/BookmarkCategory.cpp index ac7811ac4f..153884b260 100644 --- a/android/jni/com/mapswithme/maps/bookmarks/data/BookmarkCategory.cpp +++ b/android/jni/com/mapswithme/maps/bookmarks/data/BookmarkCategory.cpp @@ -31,10 +31,8 @@ Java_com_mapswithme_maps_bookmarks_data_BookmarkCategory_nativeSetVisibility( JNIEnv * env, jobject thiz, jint id, jboolean b) { BookmarkCategory * pCat = getBmCategory(id); - { - BookmarkCategory::Guard guard(*pCat); - guard.m_controller.SetIsVisible(b); - } + pCat->SetIsVisible(b); + pCat->NotifyChanges(); pCat->SaveToKMLFile(); } |