diff options
author | ExMix <rahuba.youri@mapswithme.com> | 2014-10-21 19:54:52 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:31:18 +0300 |
commit | 3b8f933575fbf116608b4ac571c167426b2821de (patch) | |
tree | c963604117c31818618277bfb2e00a436f23ddd1 /map/bookmark.cpp | |
parent | 4886b1d86f545571b11167e839180f98d6c11439 (diff) |
[core] notify if active bookmark of bookmark category deleted
Diffstat (limited to 'map/bookmark.cpp')
-rw-r--r-- | map/bookmark.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/map/bookmark.cpp b/map/bookmark.cpp index f42292aff2..c34127a16c 100644 --- a/map/bookmark.cpp +++ b/map/bookmark.cpp @@ -128,6 +128,13 @@ void BookmarkCategory::DeleteBookmark(size_t index) ASSERT_LESS(index, c.GetUserMarkCount(), ()); UserMark const * markForDelete = c.GetUserMark(index); + if (m_framework.GetBookmarkManager().IsUserMarkActive(markForDelete)) + { + PinClickManager & clickManager = m_framework.GetBalloonManager(); + clickManager.RemovePin(); + clickManager.Dismiss(); + } + int animIndex = -1; for (size_t i = 0; i < m_anims.size(); ++i) { |