changeset 603:fba4839f8811

Replace path separators on Windows with command-line paths
author Chris Cannam
date Wed, 24 Jul 2013 18:30:17 +0100 (2013-07-24)
parents b8801b96426b
children ac16e5093032
files main/main.cpp
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/main/main.cpp	Wed Jul 24 17:12:05 2013 +0100
+++ b/main/main.cpp	Wed Jul 24 18:30:17 2013 +0100
@@ -482,6 +482,10 @@
 
     MainWindow::FileOpenStatus status = MainWindow::FileOpenFailed;
 
+#ifdef Q_OS_WIN32
+    path.replace("\\", "/");
+#endif
+
     if (path.endsWith("sv")) {
         if (!haveSession) {
             status = m_mainWindow->openSessionFile(path);