Themes Window: do not download themes information multiple times.
Change-Id: Ic8011ec3f45d4313436a5a49a3a0f604f8931840
This commit is contained in:
parent
ca1bbc08b3
commit
39396cc707
1 changed files with 9 additions and 5 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue