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
bac08e93
Commit
bac08e93
authored
Apr 21, 2010
by
Tobias Hunger
Browse files
Escape env vars for the summary
parent
fdc39de6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/projectexplorer/environmenteditmodel.cpp
View file @
bac08e93
...
...
@@ -31,6 +31,8 @@
#include
<utils/detailswidget.h>
#include
<QtGui/QTextDocument>
#include
<QtGui/QVBoxLayout>
#include
<QtGui/QHeaderView>
#include
<QtGui/QToolButton>
...
...
@@ -491,9 +493,9 @@ void EnvironmentWidget::updateSummaryText()
if
(
item
.
name
!=
EnvironmentModel
::
tr
(
"<VARIABLE>"
))
{
text
.
append
(
"<br>"
);
if
(
item
.
unset
)
text
.
append
(
tr
(
"Unset <b>%1</b>"
).
arg
(
item
.
name
));
text
.
append
(
tr
(
"Unset <b>%1</b>"
).
arg
(
Qt
::
escape
(
item
.
name
))
)
;
else
text
.
append
(
tr
(
"Set <b>%1</b> to <b>%2</b>"
).
arg
(
item
.
name
,
item
.
value
));
text
.
append
(
tr
(
"Set <b>%1</b> to <b>%2</b>"
).
arg
(
Qt
::
escape
(
item
.
name
)
,
Qt
::
escape
(
item
.
value
))
)
;
}
}
...
...
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