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
cdbb7c6a
Commit
cdbb7c6a
authored
Jun 10, 2010
by
dt
Browse files
Remove Qt4 runconfigurations again which don't work.
Task-Nr: QTCREATORBUG-1593
parent
67de1227
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qt4projectmanager/qt4project.cpp
View file @
cdbb7c6a
...
...
@@ -313,6 +313,7 @@ bool Qt4Project::fromMap(const QVariantMap &map)
updateFileList
();
// This might be incorrect, need a full update
updateCodeModel
();
createApplicationProjects
();
foreach
(
Target
*
t
,
targets
())
...
...
@@ -998,10 +999,26 @@ void Qt4Project::createApplicationProjects()
target
->
removeRunConfiguration
(
rc
);
}
// We use the list twice
QList
<
Qt4ProFileNode
*>
profiles
=
applicationProFiles
();
QStringList
paths
;
foreach
(
Qt4ProFileNode
*
pro
,
profiles
)
paths
<<
pro
->
path
();
foreach
(
RunConfiguration
*
rc
,
target
->
runConfigurations
())
{
if
(
Qt4RunConfiguration
*
qt4rc
=
qobject_cast
<
Qt4RunConfiguration
*>
(
rc
))
{
if
(
!
paths
.
contains
(
qt4rc
->
proFilePath
()))
{
// A deleted .pro file? or a change template
// We do remove those though
target
->
removeRunConfiguration
(
rc
);
}
}
}
// Only add new runconfigurations if there are none.
if
(
target
->
runConfigurations
().
isEmpty
())
{
Qt4Target
*
qt4Target
=
static_cast
<
Qt4Target
*>
(
target
);
foreach
(
Qt4ProFileNode
*
qt4proFile
,
applicationP
ro
F
iles
()
)
{
foreach
(
Qt4ProFileNode
*
qt4proFile
,
p
ro
f
iles
)
{
qt4Target
->
addRunConfigurationForPath
(
qt4proFile
->
path
());
}
}
...
...
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