[new downloader] Implementation of filling nodeAttrs.m_present flag.

This commit is contained in:
Vladimir Byko-Ianko 2016-03-03 08:32:15 +03:00 committed by Sergey Yershov
parent 9561e91d78
commit 0f3d786732
2 changed files with 1 additions and 1 deletions

View file

@ -1337,6 +1337,7 @@ void Storage::GetNodeAttrs(TCountryId const & countryId, NodeAttrs & nodeAttrs)
nodeAttrs.m_localMwmCounter += 1;
nodeAttrs.m_localMwmSize += localFile->GetSize(MapOptions::Map);
});
nodeAttrs.m_present = m_localFiles.find(countryId) != m_localFiles.end();
// Parents information.
nodeAttrs.m_parentInfo.clear();

View file

@ -76,7 +76,6 @@ struct NodeAttrs
/// Indicates that the map is currently downloaded and connected to storage.
/// Can be used to distinguish downloadable and updatable maps.
/// @todo. Set appropriate value.
bool m_present;
};