diff options
author | Arsentiy Milchakov <milcars@mapswithme.com> | 2017-11-01 17:25:08 +0300 |
---|---|---|
committer | r.kuznetsov <r.kuznetsov@corp.mail.ru> | 2017-11-09 13:20:32 +0300 |
commit | 820487db2f414481b9be2c8798e0c3226e289127 (patch) | |
tree | 39f4a90673f676aa76472bf233f63a288b3b3233 /storage | |
parent | 9002e1c3dc4afe597421a6831b18929946392053 (diff) |
[storage] review fixes
Diffstat (limited to 'storage')
-rw-r--r-- | storage/storage.cpp | 1 | ||||
-rw-r--r-- | storage/storage.hpp | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/storage/storage.cpp b/storage/storage.cpp index fe709b2fc2..585812a74b 100644 --- a/storage/storage.cpp +++ b/storage/storage.cpp @@ -1454,6 +1454,7 @@ void Storage::OnDiffStatusReceived(diffs::Status const status) if (!isSuccess) { m_failedCountries.insert(countryId); + NotifyStatusChangedForHierarchy(countryId); return; } diff --git a/storage/storage.hpp b/storage/storage.hpp index 1f1240948b..f63056aed4 100644 --- a/storage/storage.hpp +++ b/storage/storage.hpp @@ -662,6 +662,8 @@ private: void LoadDiffScheme(); void ApplyDiff(TCountryId const & countryId, function<void(bool isSuccess)> const & fn); + // Should be called once on startup, downloading process should be suspended until this method + // was not called. Do not call this method manually. void OnDiffStatusReceived(diffs::Status const status) override; }; |