[ios] Fixed download from map.

Added ability to download from map in case when routing is built but not yet started.
This commit is contained in:
Ilya Grechuhin 2016-04-29 14:11:12 +03:00 committed by Alex Zolotarev
parent 0ecdb3f90b
commit a7c3a9804b

View file

@ -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());