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
153f6aab
Commit
153f6aab
authored
May 27, 2009
by
dt
Browse files
Fix a small bug that made the Edit on some environment pages disabled
parent
4267de47
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/projectexplorer/environmenteditmodel.cpp
View file @
153f6aab
...
...
@@ -551,6 +551,7 @@ void EnvironmentWidget::environmentCurrentIndexChanged(const QModelIndex ¤
{
Q_UNUSED
(
previous
)
if
(
current
.
isValid
())
{
m_editButton
->
setEnabled
(
true
);
if
(
m_model
->
mergedEnvironments
())
{
const
QString
&
name
=
m_model
->
indexToVariable
(
current
);
bool
modified
=
m_model
->
isInBaseEnvironment
(
name
)
&&
m_model
->
changes
(
name
);
...
...
@@ -562,7 +563,7 @@ void EnvironmentWidget::environmentCurrentIndexChanged(const QModelIndex ¤
m_unsetButton
->
setEnabled
(
!
m_model
->
isUnset
(
m_model
->
indexToVariable
(
current
)));
}
}
else
{
m_editButton
->
setEnabled
(
current
.
isValid
()
);
m_editButton
->
setEnabled
(
false
);
m_removeButton
->
setEnabled
(
false
);
m_unsetButton
->
setEnabled
(
false
);
}
...
...
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