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 <bykoianko@gmail.com>2017-09-04 15:32:25 +0300
commit2b7f48a35818fe3d389304753d28f58027e88285 (patch)
tree7481789b6fdeb928031fbf04688cc6a09d255fae
parent0545c3c72fbafedcbb24869c8a66aea1868adda4 (diff)
Check if there is a diff before downloading.beta-991
-rw-r--r--storage/storage.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/storage/storage.cpp b/storage/storage.cpp
index 656bef087f..f355e76b4e 100644
--- a/storage/storage.cpp
+++ b/storage/storage.cpp
@@ -806,6 +806,8 @@ void Storage::OnServerListDownloaded(vector<string> const & urls)
queuedCountry.ResetToDefaultOptions();
break;
case Status::Available:
+ if (!m_diffManager.HasDiffFor(queuedCountry.GetCountryId()))
+ queuedCountry.ResetToDefaultOptions();
break;
}
}