aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@theqtcompany.com>2015-05-29 11:53:52 +0200
committerTobias Hunger <tobias.hunger@theqtcompany.com>2015-06-01 09:23:27 +0000
commit859e842eedbf5cffba05f818eeb9c66b26b38a05 (patch)
treef87b7b87859b85366ee9cb161cd2b279f269be86 /src
parent5000b295434f81c9b8951839f998ee5a6095ecb0 (diff)
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>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/coreplugin/dialogs/newdialog.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/plugins/coreplugin/dialogs/newdialog.cpp b/src/plugins/coreplugin/dialogs/newdialog.cpp
index 5ad6591bb9..3e7788a95b 100644
--- a/src/plugins/coreplugin/dialogs/newdialog.cpp
+++ b/src/plugins/coreplugin/dialogs/newdialog.cpp
@@ -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;