Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
d613c057
Commit
d613c057
authored
Apr 14, 2011
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/projectexplorer/target.cpp
View file @
d613c057
...
...
@@ -145,6 +145,11 @@ void Target::addBuildConfiguration(BuildConfiguration *configuration)
configurationDisplayName
=
Project
::
makeUnique
(
configurationDisplayName
,
displayNames
);
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
d
->
m_buildConfigurations
.
push_back
(
configuration
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment