From 691f95b073e39d826efbd850ae21bec01e62dfd5 Mon Sep 17 00:00:00 2001 From: hjk Date: Fri, 4 Feb 2011 09:39:16 +0100 Subject: [PATCH] openeditorsview: add double quotes around file names in context menu --- src/plugins/coreplugin/editormanager/openeditorsview.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/coreplugin/editormanager/openeditorsview.cpp b/src/plugins/coreplugin/editormanager/openeditorsview.cpp index b309cd2abfd..a90d3702481 100644 --- a/src/plugins/coreplugin/editormanager/openeditorsview.cpp +++ b/src/plugins/coreplugin/editormanager/openeditorsview.cpp @@ -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"));