diff --git a/map/country_tree.cpp b/map/country_tree.cpp index 6f0a626c20..dd2e18ab29 100644 --- a/map/country_tree.cpp +++ b/map/country_tree.cpp @@ -191,11 +191,19 @@ void CountryTree::RetryDownloading(int childPosition) GetActiveMapLayout().RetryDownloading(GetChild(childPosition)); } -void CountryTree::DownloadAllCountry(MapOptions const & options) +void CountryTree::DownloadAll() { size_t const childCount = GetChildCount(); for (size_t i = 0; i < childCount; ++i) - DownloadCountry(i, options); + { + if (IsLeaf(i)) + DownloadCountry(i, MapOptions::MapWithCarRouting); + } +} + +bool CountryTree::IsDownloadAllAvailable() +{ + return true; } void CountryTree::CancelDownloading(int childPosition) diff --git a/map/country_tree.hpp b/map/country_tree.hpp index 9c4201e280..fdfc34c628 100644 --- a/map/country_tree.hpp +++ b/map/country_tree.hpp @@ -67,7 +67,8 @@ public: void DownloadCountry(int childPosition, MapOptions const & options); void DeleteCountry(int childPosition, MapOptions const & options); void RetryDownloading(int childPosition); - void DownloadAllCountry(MapOptions const & options); + void DownloadAll(); + bool IsDownloadAllAvailable(); ///@} void CancelDownloading(int childPosition);