NewDialog: Always default to "All templates"

This is more reliable than choosing the first platform (whichever
that happens to be).

Change-Id: Ic2b33de96af295bdaa0955014853e1a5cf7605e3
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
Tobias Hunger
2015-05-29 11:53:52 +02:00
parent 5000b29543
commit 859e842eed

View File

@@ -278,10 +278,8 @@ void NewDialog::setWizardFactories(QList<IWizardFactory *> factories,
m_ui->comboBox->addItem(tr("%1 Templates").arg(displayNameForPlatform), platform);
}
if (!availablePlatforms.isEmpty())
m_ui->comboBox->setCurrentIndex(1); //First Platform
else
m_ui->comboBox->setDisabled(true);
m_ui->comboBox->setCurrentIndex(0); // "All templates"
m_ui->comboBox->setEnabled(!availablePlatforms.isEmpty());
foreach (IWizardFactory *factory, factories) {
QStandardItem *kindItem;