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:
authorvng <viktor.govako@gmail.com>2014-10-16 21:33:31 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:30:51 +0300
commit4cc9fd6914d548e2649d6e7c01835d3ab67993ad (patch)
tree1f134be5adf944a4cf58559b57e469d132c43007 /qt/update_dialog.cpp
parent7d238bdee5364c4deeaa83ccb4cb207a9f383731 (diff)
Fixed country deletion.
Diffstat (limited to 'qt/update_dialog.cpp')
-rw-r--r--qt/update_dialog.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/qt/update_dialog.cpp b/qt/update_dialog.cpp
index db5e6d8aae..04bad01229 100644
--- a/qt/update_dialog.cpp
+++ b/qt/update_dialog.cpp
@@ -253,9 +253,12 @@ namespace qt
switch (m_framework.GetCountryStatus(index))
{
case TStatus::ENotDownloaded:
- size = st.CountrySizeInBytes(index, options);
- if (size.second > 0)
+ if (st.CountriesCount(index) == 0)
+ {
+ size = st.CountrySizeInBytes(index, options);
+ ASSERT(size.second > 0, (index));
statusString = tr("Click to download");
+ }
rowColor = COLOR_NOTDOWNLOADED;
break;