forked from qt-creator/qt-creator
openeditorsview: add double quotes around file names in context menu
This commit is contained in:
@@ -208,10 +208,10 @@ void OpenEditorsWidget::contextMenuRequested(QPoint pos)
|
|||||||
const QModelIndex index = m_ui.editorList->indexAt(pos);
|
const QModelIndex index = m_ui.editorList->indexAt(pos);
|
||||||
QMenu contextMenu;
|
QMenu contextMenu;
|
||||||
QAction *closeEditor = contextMenu.addAction(
|
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"));
|
: tr("Close Editor"));
|
||||||
QAction *closeOtherEditors = contextMenu.addAction(
|
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"));
|
: tr("Close Other Editors"));
|
||||||
QAction *closeAllEditors = contextMenu.addAction(tr("Close All Editors"));
|
QAction *closeAllEditors = contextMenu.addAction(tr("Close All Editors"));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user