Commit 859e842e authored by Tobias Hunger's avatar Tobias Hunger

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: default avatarEike Ziller <>
parent 5000b295
...@@ -278,10 +278,8 @@ void NewDialog::setWizardFactories(QList<IWizardFactory *> factories, ...@@ -278,10 +278,8 @@ void NewDialog::setWizardFactories(QList<IWizardFactory *> factories,
m_ui->comboBox->addItem(tr("%1 Templates").arg(displayNameForPlatform), platform); m_ui->comboBox->addItem(tr("%1 Templates").arg(displayNameForPlatform), platform);
} }
if (!availablePlatforms.isEmpty()) m_ui->comboBox->setCurrentIndex(0); // "All templates"
m_ui->comboBox->setCurrentIndex(1); //First Platform m_ui->comboBox->setEnabled(!availablePlatforms.isEmpty());
foreach (IWizardFactory *factory, factories) { foreach (IWizardFactory *factory, factories) {
QStandardItem *kindItem; QStandardItem *kindItem;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment