Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -301,6 +301,14 @@ void Qt4BuildConfiguration::setQtVersion(QtVersion *version)
return;
m_qtVersionId = version->uniqueId();
if (!version->possibleToolChainTypes().contains(ProjectExplorer::ToolChain::ToolChainType(m_toolChainType))) {
QList<ToolChain::ToolChainType> candidates =
qt4Target()->filterToolChainTypes(qtVersion()->possibleToolChainTypes());
if (candidates.isEmpty())
m_toolChainType = -1;
else
m_toolChainType = candidates.first();
}
emit proFileEvaluateNeeded(this);
emit qtVersionChanged();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment