summaryrefslogtreecommitdiff
path: root/rbutil
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2012-08-19 11:01:58 +0200
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2012-08-19 11:04:54 +0200
commit39396cc70752748c3fbafa6a0afc26835719b9e4 (patch)
tree7f6fad9e7f9a01fd41bfa8238faa099057fddb38 /rbutil
parentca1bbc08b34a03a217471b802fdd600e8594f5bb (diff)
Themes Window: do not download themes information multiple times.
Change-Id: Ic8011ec3f45d4313436a5a49a3a0f604f8931840
Diffstat (limited to 'rbutil')
-rw-r--r--rbutil/rbutilqt/themesinstallwindow.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/rbutil/rbutilqt/themesinstallwindow.cpp b/rbutil/rbutilqt/themesinstallwindow.cpp
index 1b10ce9e6c..17a4050140 100644
--- a/rbutil/rbutilqt/themesinstallwindow.cpp
+++ b/rbutil/rbutilqt/themesinstallwindow.cpp
@@ -290,13 +290,17 @@ void ThemesInstallWindow::show()
if(windowSelectOnly)
ui.buttonOk->setText(tr("Select"));
- logger = new ProgressLoggerGui(this);
- logger->show();
- logger->addItem(tr("getting themes information ..."), LOGINFO);
+ if(!logger)
+ logger = new ProgressLoggerGui(this);
- connect(logger, SIGNAL(aborted()), this, SLOT(close()));
+ if(ui.listThemes->count() == 0) {
+ logger->show();
+ logger->addItem(tr("getting themes information ..."), LOGINFO);
- downloadInfo();
+ connect(logger, SIGNAL(aborted()), this, SLOT(close()));
+
+ downloadInfo();
+ }
}