diff --git a/iphone/Maps/Classes/Widgets/MWMMapDownloadDialog.mm b/iphone/Maps/Classes/Widgets/MWMMapDownloadDialog.mm index f7ee13dd90..358c2437bc 100644 --- a/iphone/Maps/Classes/Widgets/MWMMapDownloadDialog.mm +++ b/iphone/Maps/Classes/Widgets/MWMMapDownloadDialog.mm @@ -94,13 +94,14 @@ using namespace storage; - (void)configDialog { - auto & s = GetFramework().Storage(); - auto & p = GetFramework().DownloadingPolicy(); + auto & f = GetFramework(); + auto const & s = f.Storage(); + auto const & p = f.DownloadingPolicy(); NodeAttrs nodeAttrs; s.GetNodeAttrs(m_countryId, nodeAttrs); - if (!nodeAttrs.m_present && !GetFramework().IsRoutingActive()) + if (!nodeAttrs.m_present && !f.IsOnRoute()) { BOOL const isMultiParent = nodeAttrs.m_parentInfo.size() > 1; BOOL const noParrent = (nodeAttrs.m_parentInfo[0].m_id == s.GetRootId());