Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladiMihaylenko <vxmihaylenko@gmail.com>2017-09-04 14:27:46 +0300
committerVladimir Byko-Ianko <v.bykoianko@corp.mail.ru>2017-09-13 16:25:50 +0300
commit8af1a59abca8223d042831ea2a4cd916dc9d682c (patch)
tree376e6d188ee2866af6eaf814280441e231ccc5b8 /storage
parent939456efa6e6878b7e195728f292cd91ff191c1b (diff)
Check if there is a diff before downloading.
Diffstat (limited to 'storage')
-rw-r--r--storage/storage.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/storage/storage.cpp b/storage/storage.cpp
index 74149af205..d862e4df3a 100644
--- a/storage/storage.cpp
+++ b/storage/storage.cpp
@@ -786,6 +786,8 @@ void Storage::OnServerListDownloaded(vector<string> const & urls)
queuedCountry.ResetToDefaultOptions();
break;
case Status::Available:
+ if (!m_diffManager.HasDiffFor(queuedCountry.GetCountryId()))
+ queuedCountry.ResetToDefaultOptions();
break;
}
}