Themes Window: do not download themes information multiple times.

Change-Id: Ic8011ec3f45d4313436a5a49a3a0f604f8931840
This commit is contained in:
Dominik Riebeling 2012-08-19 11:01:58 +02:00
parent ca1bbc08b3
commit 39396cc707

View file

@ -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();
}
}