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
Tobias Hunger
qt-creator
Commits
160cf409
Commit
160cf409
authored
Aug 31, 2010
by
dt
Browse files
Make sure we don't leave unconfigured Custom Executable RC laying around
Task-Nr: QTCREATORBUG-2222
parent
ba876ffd
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/cmakeprojectmanager/cmaketarget.cpp
View file @
160cf409
...
...
@@ -107,9 +107,14 @@ void CMakeTarget::updateRunConfigurations()
{
// *Update* runconfigurations:
QMultiMap
<
QString
,
CMakeRunConfiguration
*>
existingRunConfigurations
;
foreach
(
ProjectExplorer
::
RunConfiguration
*
cmakeRunConfiguration
,
runConfigurations
())
{
if
(
CMakeRunConfiguration
*
rc
=
qobject_cast
<
CMakeRunConfiguration
*>
(
cmakeRunConfiguration
))
existingRunConfigurations
.
insert
(
rc
->
title
(),
rc
);
QList
<
ProjectExplorer
::
RunConfiguration
*>
toRemove
;
foreach
(
ProjectExplorer
::
RunConfiguration
*
rc
,
runConfigurations
())
{
if
(
CMakeRunConfiguration
*
cmakeRC
=
qobject_cast
<
CMakeRunConfiguration
*>
(
rc
))
existingRunConfigurations
.
insert
(
cmakeRC
->
title
(),
cmakeRC
);
ProjectExplorer
::
CustomExecutableRunConfiguration
*
ceRC
=
qobject_cast
<
ProjectExplorer
::
CustomExecutableRunConfiguration
*>
(
rc
);
if
(
ceRC
&&
!
ceRC
->
isConfigured
())
toRemove
<<
rc
;
}
foreach
(
const
CMakeBuildTarget
&
ct
,
cmakeProject
()
->
buildTargets
())
{
...
...
@@ -142,6 +147,10 @@ void CMakeTarget::updateRunConfigurations()
rc
->
setEnabled
(
false
);
// removeRunConfiguration(rc);
}
foreach
(
ProjectExplorer
::
RunConfiguration
*
rc
,
toRemove
)
removeRunConfiguration
(
rc
);
if
(
runConfigurations
().
isEmpty
())
{
// Oh no, no run configuration,
// create a custom executable run 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