Skip to content
GitLab
Menu
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
3e68d1a7
Commit
3e68d1a7
authored
Nov 19, 2009
by
dt
Browse files
Fix RunConfigurations showing only enabled RunConfigurations
parent
69969bef
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/projectexplorer/projectexplorer.cpp
View file @
3e68d1a7
...
@@ -2000,17 +2000,15 @@ void ProjectExplorerPlugin::populateRunConfigurationMenu()
...
@@ -2000,17 +2000,15 @@ void ProjectExplorerPlugin::populateRunConfigurationMenu()
foreach
(
const
Project
*
pro
,
d
->
m_session
->
projects
())
{
foreach
(
const
Project
*
pro
,
d
->
m_session
->
projects
())
{
foreach
(
QSharedPointer
<
RunConfiguration
>
runConfiguration
,
pro
->
runConfigurations
())
{
foreach
(
QSharedPointer
<
RunConfiguration
>
runConfiguration
,
pro
->
runConfigurations
())
{
if
(
runConfiguration
->
isEnabled
())
{
const
QString
title
=
QString
(
"%1 (%2)"
).
arg
(
pro
->
name
(),
runConfiguration
->
name
());
const
QString
title
=
QString
(
"%1 (%2)"
).
arg
(
pro
->
name
(),
runConfiguration
->
name
());
QAction
*
act
=
new
QAction
(
title
,
d
->
m_runConfigurationActionGroup
);
QAction
*
act
=
new
QAction
(
title
,
d
->
m_runConfigurationActionGroup
);
act
->
setCheckable
(
true
);
act
->
setCheckable
(
true
);
act
->
setData
(
qVariantFromValue
(
runConfiguration
));
act
->
setData
(
qVariantFromValue
(
runConfiguration
));
act
->
setChecked
(
runConfiguration
==
activeRunConfiguration
);
act
->
setChecked
(
runConfiguration
==
activeRunConfiguration
);
d
->
m_runConfigurationMenu
->
addAction
(
act
);
d
->
m_runConfigurationMenu
->
addAction
(
act
);
if
(
debug
)
if
(
debug
)
qDebug
()
<<
"RunConfiguration"
<<
runConfiguration
<<
"project:"
<<
pro
->
name
()
qDebug
()
<<
"RunConfiguration"
<<
runConfiguration
<<
"project:"
<<
pro
->
name
()
<<
"active:"
<<
(
runConfiguration
==
activeRunConfiguration
);
<<
"active:"
<<
(
runConfiguration
==
activeRunConfiguration
);
}
}
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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