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
3840f861
Commit
3840f861
authored
Feb 19, 2010
by
dt
Browse files
Fix buildSession if some projects have no active buildconfiguration
parent
c5cac927
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/projectexplorer/projectexplorer.cpp
View file @
3840f861
...
...
@@ -1458,7 +1458,8 @@ void ProjectExplorerPlugin::buildProject()
if
(
saveModifiedFiles
())
{
QList
<
BuildConfiguration
*>
configurations
;
foreach
(
Project
*
pro
,
d
->
m_session
->
projectOrder
(
d
->
m_currentProject
))
configurations
<<
pro
->
activeTarget
()
->
activeBuildConfiguration
();
if
(
pro
->
activeTarget
()
->
activeBuildConfiguration
())
configurations
<<
pro
->
activeTarget
()
->
activeBuildConfiguration
();
d
->
m_buildManager
->
buildProjects
(
configurations
);
}
...
...
@@ -1472,7 +1473,8 @@ void ProjectExplorerPlugin::buildSession()
if
(
saveModifiedFiles
())
{
QList
<
BuildConfiguration
*>
configurations
;
foreach
(
Project
*
pro
,
d
->
m_session
->
projectOrder
())
configurations
<<
pro
->
activeTarget
()
->
activeBuildConfiguration
();
if
(
pro
->
activeTarget
()
->
activeBuildConfiguration
())
configurations
<<
pro
->
activeTarget
()
->
activeBuildConfiguration
();
d
->
m_buildManager
->
buildProjects
(
configurations
);
}
}
...
...
@@ -1497,7 +1499,8 @@ void ProjectExplorerPlugin::rebuildProject()
const
QList
<
Project
*>
&
projects
=
d
->
m_session
->
projectOrder
(
d
->
m_currentProject
);
QList
<
BuildConfiguration
*>
configurations
;
foreach
(
Project
*
pro
,
projects
)
configurations
<<
pro
->
activeTarget
()
->
activeBuildConfiguration
();
if
(
pro
->
activeTarget
()
->
activeBuildConfiguration
())
configurations
<<
pro
->
activeTarget
()
->
activeBuildConfiguration
();
d
->
m_buildManager
->
cleanProjects
(
configurations
);
d
->
m_buildManager
->
buildProjects
(
configurations
);
...
...
@@ -1513,7 +1516,8 @@ void ProjectExplorerPlugin::rebuildSession()
const
QList
<
Project
*>
&
projects
=
d
->
m_session
->
projectOrder
();
QList
<
BuildConfiguration
*>
configurations
;
foreach
(
Project
*
pro
,
projects
)
configurations
<<
pro
->
activeTarget
()
->
activeBuildConfiguration
();
if
(
pro
->
activeTarget
()
->
activeBuildConfiguration
())
configurations
<<
pro
->
activeTarget
()
->
activeBuildConfiguration
();
d
->
m_buildManager
->
cleanProjects
(
configurations
);
d
->
m_buildManager
->
buildProjects
(
configurations
);
...
...
@@ -1538,7 +1542,8 @@ void ProjectExplorerPlugin::cleanProject()
const
QList
<
Project
*>
&
projects
=
d
->
m_session
->
projectOrder
(
d
->
m_currentProject
);
QList
<
BuildConfiguration
*>
configurations
;
foreach
(
Project
*
pro
,
projects
)
configurations
<<
pro
->
activeTarget
()
->
activeBuildConfiguration
();
if
(
pro
->
activeTarget
()
->
activeBuildConfiguration
())
configurations
<<
pro
->
activeTarget
()
->
activeBuildConfiguration
();
d
->
m_buildManager
->
cleanProjects
(
configurations
);
}
}
...
...
@@ -1552,7 +1557,8 @@ void ProjectExplorerPlugin::cleanSession()
const
QList
<
Project
*>
&
projects
=
d
->
m_session
->
projectOrder
();
QList
<
BuildConfiguration
*>
configurations
;
foreach
(
Project
*
pro
,
projects
)
configurations
<<
pro
->
activeTarget
()
->
activeBuildConfiguration
();
if
(
pro
->
activeTarget
()
->
activeBuildConfiguration
())
configurations
<<
pro
->
activeTarget
()
->
activeBuildConfiguration
();
d
->
m_buildManager
->
cleanProjects
(
configurations
);
}
}
...
...
@@ -1584,7 +1590,8 @@ void ProjectExplorerPlugin::runProjectImpl(Project *pro, QString mode)
const
QList
<
Project
*>
&
projects
=
d
->
m_session
->
projectOrder
(
pro
);
QList
<
BuildConfiguration
*>
configurations
;
foreach
(
Project
*
pro
,
projects
)
configurations
<<
pro
->
activeTarget
()
->
activeBuildConfiguration
();
if
(
pro
->
activeTarget
()
->
activeBuildConfiguration
())
configurations
<<
pro
->
activeTarget
()
->
activeBuildConfiguration
();
d
->
m_buildManager
->
buildProjects
(
configurations
);
updateRunActions
();
...
...
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