| 883 | } |
| 884 | |
| 885 | void RoutingManager::CloseRouting(bool removeRoutePoints) |
| 886 | { |
| 887 | // Hide preview. |
| 888 | HidePreviewSegments(); |
| 889 | |
| 890 | if (m_routingSession.IsBuilt()) |
| 891 | m_routingSession.EmitCloseRoutingEvent(); |
| 892 | m_routingSession.Reset(); |
| 893 | RemoveRoute(true /* deactivateFollowing */); |
| 894 | |
| 895 | if (removeRoutePoints) |
| 896 | { |
| 897 | m_bmManager->GetEditSession().ClearGroup(UserMark::Type::ROUTING); |
| 898 | CancelRecommendation(Recommendation::RebuildAfterPointsLoading); |
| 899 | } |
| 900 | } |
| 901 | |
| 902 | void RoutingManager::SetLastUsedRouter(RouterType type) |
| 903 | { |
no test coverage detected