Framework::GetGuideInfo doesn't check any country status conditions.

This commit is contained in:
vng 2013-08-28 18:08:45 +03:00 committed by Alex Zolotarev
parent c5465383da
commit 566681bd04
2 changed files with 3 additions and 3 deletions

View file

@ -334,8 +334,9 @@ void InitLocalizedStrings()
- (void) OnCountryChange: (storage::TIndex const &)index
{
Framework const & f = GetFramework();
guides::GuideInfo guide;
if (GetFramework().GetGuideInfo(index, guide))
if (f.GetCountryStatus(index) == storage::EOnDisk && f.GetGuideInfo(index, guide))
[self ShowNotificationWithGuideInfo:guide];
}

View file

@ -1688,8 +1688,7 @@ void Framework::UpdateSavedDataVersion()
bool Framework::GetGuideInfo(storage::TIndex const & index, guides::GuideInfo & info) const
{
return (GetCountryStatus(index) == storage::EOnDisk &&
m_storage.GetGuideManager().GetGuideInfo(m_storage.CountryFileName(index), info));
return m_storage.GetGuideManager().GetGuideInfo(m_storage.CountryFileName(index), info);
}
void Framework::GetGuidesInfosWithDownloadedMaps(vector<guides::GuideInfo> & guides) const