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
abf998d6
Commit
abf998d6
authored
Apr 07, 2010
by
dt
Browse files
Fix disabling of remove runconfiguration
parent
b1a121c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/projectexplorer/runsettingspropertiespage.cpp
View file @
abf998d6
...
...
@@ -235,6 +235,8 @@ RunSettingsWidget::RunSettingsWidget(Target *target)
m_ui
->
runConfigurationCombo
->
setCurrentIndex
(
m_target
->
runConfigurations
().
indexOf
(
m_target
->
activeRunConfiguration
()));
m_ui
->
removeToolButton
->
setEnabled
(
m_target
->
runConfigurations
().
size
()
>
1
);
m_runConfigurationWidget
=
m_target
->
activeRunConfiguration
()
->
configurationWidget
();
layout
()
->
addWidget
(
m_runConfigurationWidget
);
...
...
@@ -295,12 +297,14 @@ void RunSettingsWidget::addRunConfiguration()
return
;
m_target
->
addRunConfiguration
(
newRC
);
m_target
->
setActiveRunConfiguration
(
newRC
);
m_ui
->
removeToolButton
->
setEnabled
(
m_target
->
runConfigurations
().
size
()
>
1
);
}
void
RunSettingsWidget
::
removeRunConfiguration
()
{
RunConfiguration
*
rc
=
m_target
->
activeRunConfiguration
();
m_target
->
removeRunConfiguration
(
rc
);
m_ui
->
removeToolButton
->
setEnabled
(
m_target
->
runConfigurations
().
size
()
>
1
);
}
void
RunSettingsWidget
::
activeRunConfigurationChanged
()
...
...
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