Commit 1aa3ec58 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Fix initialization of toolchain combobox in Qt4project

 * Initialize it to the toolchain used, not the preferred one
parent 10ffba59
......@@ -417,7 +417,7 @@ void Qt4ProjectConfigWidget::updateToolChainCombo()
foreach (ToolChain::ToolChainType toolchain, toolchains)
m_ui->toolChainComboBox->addItem(ToolChain::toolChainName(toolchain), qVariantFromValue(toolchain));
m_ui->toolChainComboBox->setEnabled(toolchains.size() > 1);
m_ui->toolChainComboBox->setCurrentIndex(toolchains.indexOf(m_buildConfiguration->qt4Target()->preferredToolChainType(toolchains)));
m_ui->toolChainComboBox->setCurrentIndex(toolchains.indexOf(m_buildConfiguration->toolChainType()));
updateDetails();
}
......
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