forked from qt-creator/qt-creator
		
	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:
		@@ -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;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user