From 39396cc70752748c3fbafa6a0afc26835719b9e4 Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Sun, 19 Aug 2012 11:01:58 +0200 Subject: Themes Window: do not download themes information multiple times. Change-Id: Ic8011ec3f45d4313436a5a49a3a0f604f8931840 --- rbutil/rbutilqt/themesinstallwindow.cpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'rbutil/rbutilqt/themesinstallwindow.cpp') 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(); + } } -- cgit v1.2.3