From 94348d8ed2f070312f58b85a6211108430b3af0a Mon Sep 17 00:00:00 2001
From: Alessandro Portale <alessandro.portale@nokia.com>
Date: Thu, 3 Sep 2009 15:39:32 +0200
Subject: [PATCH] Less / on Windows.

---
 src/plugins/coreplugin/editormanager/editormanager.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/plugins/coreplugin/editormanager/editormanager.cpp b/src/plugins/coreplugin/editormanager/editormanager.cpp
index dd7b7d18365..3a0cf29d920 100644
--- a/src/plugins/coreplugin/editormanager/editormanager.cpp
+++ b/src/plugins/coreplugin/editormanager/editormanager.cpp
@@ -1315,7 +1315,7 @@ EditorManager::ReadOnlyAction
                                       bool displaySaveAsButton)
 {
     QMessageBox msgBox(QMessageBox::Question, tr("File is Read Only"),
-                       tr("The file %1 is read only.").arg(fileName),
+                       tr("The file %1 is read only.").arg(QDir::toNativeSeparators(fileName)),
                        QMessageBox::Cancel, parent);
 
     QPushButton *sccButton = 0;
@@ -1674,7 +1674,7 @@ void EditorManager::revertToSaved()
         return;
     if (currEditor->file()->isModified()) {
         QMessageBox msgBox(QMessageBox::Question, tr("Revert to Saved"),
-                           tr("You will lose your current changes if you proceed reverting %1.").arg(fileName),
+                           tr("You will lose your current changes if you proceed reverting %1.").arg(QDir::toNativeSeparators(fileName)),
                            QMessageBox::Yes|QMessageBox::No, m_d->m_core->mainWindow());
         msgBox.button(QMessageBox::Yes)->setText(tr("Proceed"));
         msgBox.button(QMessageBox::No)->setText(tr("Cancel"));
-- 
GitLab