From a7c3a9804bab877fe2e8934c9786fbb73427ac34 Mon Sep 17 00:00:00 2001 From: Ilya Grechuhin Date: Fri, 29 Apr 2016 14:11:12 +0300 Subject: [PATCH] [ios] Fixed download from map. Added ability to download from map in case when routing is built but not yet started. --- iphone/Maps/Classes/Widgets/MWMMapDownloadDialog.mm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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());