[guides on map] Stop follow location when the guides gallery is open.

This commit is contained in:
Daria Volvenkova 2020-05-26 15:28:11 +03:00 committed by Arsentiy Milchakov
parent 7cb7f158e1
commit f483ec4685

View file

@ -2430,6 +2430,9 @@ void Framework::ActivateMapSelection(std::optional<place_page::Info> const & inf
if (!info)
return;
if (info->GetSelectedObject() == df::SelectionShape::OBJECT_GUIDE)
StopLocationFollow();
if (info->GetSelectedObject() == df::SelectionShape::OBJECT_TRACK)
GetBookmarkManager().OnTrackSelected(info->GetTrackId());
else