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)
configurationDisplayName = Project::makeUnique(configurationDisplayName, displayNames);
// Make sure we have a sane tool chain if at all possible
if (!configuration->toolChain()
|| !possibleToolChains(configuration).contains(configuration->toolChain()))
// add it
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