|
|
@ -31,11 +31,13 @@ void Wizard::ExistingInstallationPage::initializePage()
|
|
|
|
// Hide the default item if there are installations to choose from
|
|
|
|
// Hide the default item if there are installations to choose from
|
|
|
|
installationsList->item(0)->setHidden(!paths.isEmpty());
|
|
|
|
installationsList->item(0)->setHidden(!paths.isEmpty());
|
|
|
|
|
|
|
|
|
|
|
|
foreach (const QString &path, paths) {
|
|
|
|
foreach (const QString &path, paths)
|
|
|
|
QListWidgetItem *item = new QListWidgetItem(path);
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
if (installationsList->findItems(path, Qt::MatchExactly).isEmpty())
|
|
|
|
if (installationsList->findItems(path, Qt::MatchExactly).isEmpty())
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
QListWidgetItem *item = new QListWidgetItem(path);
|
|
|
|
installationsList->addItem(item);
|
|
|
|
installationsList->addItem(item);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
connect(installationsList, SIGNAL(currentTextChanged(QString)),
|
|
|
|
connect(installationsList, SIGNAL(currentTextChanged(QString)),
|
|
|
|