From 98d31961eea10847f3a523047f3a101635ded4ce Mon Sep 17 00:00:00 2001 From: Sergey Yershov Date: Tue, 26 Jan 2016 13:33:40 +0300 Subject: [PATCH] [Old map downloader] Fix Fix migration if there are no loaded MWM. --- map/framework.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/map/framework.cpp b/map/framework.cpp index 61d385e980..6f3bf1dc1e 100644 --- a/map/framework.cpp +++ b/map/framework.cpp @@ -529,12 +529,12 @@ void Framework::RegisterAllMaps() m_storage.RegisterAllLocalMaps(); - // Fast migrate if possible. + // Fast migrate in case there are no downloaded MWM. if (platform::migrate::NeedMigrate()) { bool disableFastMigrate = false; Settings::Get("DisableFastMigrate", disableFastMigrate); - if(!disableFastMigrate && m_storage.HaveDownloadedCountries()) + if(!disableFastMigrate && !m_storage.HaveDownloadedCountries()) { Migrate(); return;