From 9e12ac04dd0fc2649e34a2b96148566939abf146 Mon Sep 17 00:00:00 2001 From: Darafei Praliaskouski Date: Wed, 17 Jul 2013 06:55:41 +0300 Subject: [PATCH] [qt] tweaking update dialog --- qt/update_dialog.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/qt/update_dialog.cpp b/qt/update_dialog.cpp index 9bc488fb7b..73f1c2c6d7 100644 --- a/qt/update_dialog.cpp +++ b/qt/update_dialog.cpp @@ -93,7 +93,7 @@ namespace qt setLayout(verticalLayout); setWindowTitle(tr("Geographical Regions")); - resize(600, 500); + resize(700, 600); // we want to receive all download progress and result events m_observerSlotId = GetStorage().Subscribe(bind(&UpdateDialog::OnCountryChanged, this, _1), @@ -249,9 +249,10 @@ namespace qt switch (m_framework.GetCountryStatus(index)) { case ENotDownloaded: - statusString = tr("Click to download"); - rowColor = COLOR_NOTDOWNLOADED; size = st.CountrySizeInBytes(index); + if (size.second > 0) + statusString = tr("Click to download"); + rowColor = COLOR_NOTDOWNLOADED; break; case EOnDisk: