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
691f95b0
Commit
691f95b0
authored
Feb 04, 2011
by
hjk
Browse files
openeditorsview: add double quotes around file names in context menu
parent
cdfbf4bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/coreplugin/editormanager/openeditorsview.cpp
View file @
691f95b0
...
...
@@ -208,10 +208,10 @@ void OpenEditorsWidget::contextMenuRequested(QPoint pos)
const
QModelIndex
index
=
m_ui
.
editorList
->
indexAt
(
pos
);
QMenu
contextMenu
;
QAction
*
closeEditor
=
contextMenu
.
addAction
(
index
.
isValid
()
?
tr
(
"Close
%1
"
).
arg
(
index
.
data
().
toString
())
index
.
isValid
()
?
tr
(
"Close
\"
%1
\"
"
).
arg
(
index
.
data
().
toString
())
:
tr
(
"Close Editor"
));
QAction
*
closeOtherEditors
=
contextMenu
.
addAction
(
index
.
isValid
()
?
tr
(
"Close All Except
%1
"
).
arg
(
index
.
data
().
toString
())
index
.
isValid
()
?
tr
(
"Close All Except
\"
%1
\"
"
).
arg
(
index
.
data
().
toString
())
:
tr
(
"Close Other Editors"
));
QAction
*
closeAllEditors
=
contextMenu
.
addAction
(
tr
(
"Close All Editors"
));
...
...
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