[Old map downloader] Review fixes

This commit is contained in:
Sergey Yershov 2016-01-26 15:48:08 +03:00
parent 93755ce96f
commit 0c7fd087b3
2 changed files with 3 additions and 3 deletions

View file

@ -50,7 +50,7 @@
#define CELL2FEATURE_TMP_EXT ".c2f.tmp"
#define COUNTRIES_FILE "countries.txt"
#define COUNTRIES_MIGRATE_FILE "countries_migrate.txt"
#define COUNTRIES_MIGRATE_FILE "countries_migrate.txt"
#define WORLD_FILE_NAME "World"
#define WORLD_COASTS_FILE_NAME "WorldCoasts"

View file

@ -534,7 +534,7 @@ void Framework::RegisterAllMaps()
{
bool disableFastMigrate = false;
Settings::Get("DisableFastMigrate", disableFastMigrate);
if(!disableFastMigrate && !m_storage.HaveDownloadedCountries())
if (!disableFastMigrate && !m_storage.HaveDownloadedCountries())
{
Migrate();
return;
@ -931,7 +931,7 @@ void Framework::OnDownloadMapCallback(storage::TIndex const & countryIndex)
void Framework::OnDownloadRetryCallback(storage::TIndex const & countryIndex)
{
if (m_downloadCountryListener != nullptr)
m_downloadCountryListener(countryIndex, -1);
m_downloadCountryListener(countryIndex, -1 /* option for retry downloading */);
else
m_activeMaps->RetryDownloading(countryIndex);
}