Commit 83f5901b authored by dt's avatar dt
Browse files

Set the toolchain type on setting a different qt version

Reviewed-By: hunger
parent e92c30f1
......@@ -301,6 +301,14 @@ void Qt4BuildConfiguration::setQtVersion(QtVersion *version)
m_qtVersionId = version->uniqueId();
if (!version->possibleToolChainTypes().contains(ProjectExplorer::ToolChain::ToolChainType(m_toolChainType))) {
QList<ToolChain::ToolChainType> candidates =
if (candidates.isEmpty())
m_toolChainType = -1;
m_toolChainType = candidates.first();
emit proFileEvaluateNeeded(this);
emit qtVersionChanged();
Supports Markdown
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