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
c9f13c0f
Commit
c9f13c0f
authored
Oct 05, 2009
by
dt
Browse files
Disable building for projects that advertise that they aren't buildable.
And skip building before running for them.
parent
ec9597b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/projectexplorer/projectexplorer.cpp
View file @
c9f13c0f
...
...
@@ -1336,7 +1336,9 @@ void ProjectExplorerPlugin::updateActions()
if
(
debug
)
qDebug
()
<<
"ProjectExplorerPlugin::updateActions"
;
bool
enableBuildActions
=
d
->
m_currentProject
&&
!
(
d
->
m_buildManager
->
isBuilding
(
d
->
m_currentProject
));
bool
enableBuildActions
=
d
->
m_currentProject
&&
!
(
d
->
m_buildManager
->
isBuilding
(
d
->
m_currentProject
))
&&
d
->
m_currentProject
->
hasBuildSettings
();
bool
hasProjects
=
!
d
->
m_session
->
projects
().
isEmpty
();
bool
building
=
d
->
m_buildManager
->
isBuilding
();
QString
projectName
=
d
->
m_currentProject
?
d
->
m_currentProject
->
name
()
:
QString
();
...
...
@@ -1533,7 +1535,7 @@ void ProjectExplorerPlugin::runProjectImpl(Project *pro)
if
(
!
pro
)
return
;
if
(
d
->
m_projectExplorerSettings
.
buildBeforeRun
)
{
if
(
d
->
m_projectExplorerSettings
.
buildBeforeRun
&&
pro
->
hasBuildSettings
()
)
{
if
(
saveModifiedFiles
())
{
d
->
m_runMode
=
ProjectExplorer
::
Constants
::
RUNMODE
;
d
->
m_delayedRunConfiguration
=
pro
->
activeRunConfiguration
();
...
...
@@ -1552,7 +1554,7 @@ void ProjectExplorerPlugin::debugProject()
if
(
!
pro
||
d
->
m_debuggingRunControl
)
return
;
if
(
d
->
m_projectExplorerSettings
.
buildBeforeRun
)
{
if
(
d
->
m_projectExplorerSettings
.
buildBeforeRun
&&
pro
->
hasBuildSettings
()
)
{
if
(
saveModifiedFiles
())
{
d
->
m_runMode
=
ProjectExplorer
::
Constants
::
DEBUGMODE
;
d
->
m_delayedRunConfiguration
=
pro
->
activeRunConfiguration
();
...
...
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