Commit d613c057 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

ToolChain: Make sure we have a proper tool chain

Make sure we have a proper tool chain when restoring a project.
parent 7a0c5851
...@@ -145,6 +145,11 @@ void Target::addBuildConfiguration(BuildConfiguration *configuration) ...@@ -145,6 +145,11 @@ void Target::addBuildConfiguration(BuildConfiguration *configuration)
configurationDisplayName = Project::makeUnique(configurationDisplayName, displayNames); configurationDisplayName = Project::makeUnique(configurationDisplayName, displayNames);
configuration->setDisplayName(configurationDisplayName); configuration->setDisplayName(configurationDisplayName);
// Make sure we have a sane tool chain if at all possible
if (!configuration->toolChain()
|| !possibleToolChains(configuration).contains(configuration->toolChain()))
configuration->setToolChain(preferredToolChain(configuration));
// add it // add it
d->m_buildConfigurations.push_back(configuration); d->m_buildConfigurations.push_back(configuration);
......
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