From 14ed0bd9d56ffb3b9dd8ee68f8a2f1e90f9893e8 Mon Sep 17 00:00:00 2001 From: Robert Loehning <robert.loehning@nokia.com> Date: Fri, 25 Jun 2010 20:05:41 +0200 Subject: [PATCH] Copying path with native separators to clipboard. --- src/plugins/coreplugin/editortoolbar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/coreplugin/editortoolbar.cpp b/src/plugins/coreplugin/editortoolbar.cpp index 3223e828e70..2e6fa7f0ae1 100644 --- a/src/plugins/coreplugin/editortoolbar.cpp +++ b/src/plugins/coreplugin/editortoolbar.cpp @@ -276,7 +276,7 @@ void EditorToolBar::listContextMenu(QPoint pos) QMenu menu; menu.addAction(tr("Copy full path to clipboard")); if (menu.exec(m_editorList->mapToGlobal(pos))) { - QApplication::clipboard()->setText(fileName); + QApplication::clipboard()->setText(QDir::toNativeSeparators(fileName)); } } -- GitLab