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:
authorVladimir Byko-Ianko <v.bykoianko@corp.mail.ru>2015-07-08 17:38:08 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:55:07 +0300
commitedf1bc457dd2f8708e08871128b5d457b006c854 (patch)
tree7ba7ae37466610789f30fc9d96c8333fac957ab1 /map/country_status_display.cpp
parent264c70b824b2283a5166ef4faf31ff05d3e8a96b (diff)
The order of buttons in map downloader was changed.
Diffstat (limited to 'map/country_status_display.cpp')
-rw-r--r--map/country_status_display.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/map/country_status_display.cpp b/map/country_status_display.cpp
index bcad44fdfb..e006e80d84 100644
--- a/map/country_status_display.cpp
+++ b/map/country_status_display.cpp
@@ -354,11 +354,11 @@ void CountryStatusDisplay::SetContentForDownloadPropose()
m_label->setText(m_displayMapName);
uint64_t sizeToDownload;
string units;
- FormatMapSize(mapAndRoutingSize.first, units, sizeToDownload);
- m_primaryButton->setText(FormatStatusMessage("country_status_download", &sizeToDownload, &units));
-
FormatMapSize(mapAndRoutingSize.first + mapAndRoutingSize.second, units, sizeToDownload);
- m_secondaryButton->setText(FormatStatusMessage("country_status_download_routing", &sizeToDownload, &units));
+ m_primaryButton->setText(FormatStatusMessage("country_status_download_routing", &sizeToDownload, &units));
+
+ FormatMapSize(mapAndRoutingSize.first, units, sizeToDownload);
+ m_secondaryButton->setText(FormatStatusMessage("country_status_download", &sizeToDownload, &units));
}
void CountryStatusDisplay::SetContentForProgress()
@@ -448,7 +448,7 @@ void CountryStatusDisplay::OnButtonClicked(gui::Element const * button)
ASSERT(m_countryIdx.IsValid(), ());
TMapOptions options = TMapOptions::EMap;
- if (button == m_secondaryButton.get())
+ if (button == m_primaryButton.get())
options = SetOptions(options, TMapOptions::ECarRouting);
ASSERT(m_downloadCallback, ());