Make sure to create the logger first. Fixes a segfault due to a race with info download process (happened in offline mode)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16453 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dominik Riebeling 2008-02-29 07:19:59 +00:00
parent 1dc9de9432
commit cdfd39e3a1

View file

@ -230,11 +230,11 @@ void ThemesInstallWindow::resizeEvent(QResizeEvent* e)
void ThemesInstallWindow::show()
{
downloadInfo();
QDialog::show();
logger = new ProgressLoggerGui(this);
logger->show();
logger->addItem(tr("getting themes information ..."), LOGINFO);
downloadInfo();
connect(logger, SIGNAL(aborted()), getter, SLOT(abort()));
connect(logger, SIGNAL(aborted()), this, SLOT(close()));
}