diff main/main.cpp @ 599:4901db78f907 with-dependencies

Replace path separators on Windows with command-line paths
author Chris Cannam <chris.cannam@eecs.qmul.ac.uk>
date Wed, 24 Jul 2013 18:19:46 +0100
parents c43b3c09da63
children fa99b4775d35
line wrap: on
line diff
--- a/main/main.cpp	Wed Jul 24 18:14:53 2013 +0100
+++ b/main/main.cpp	Wed Jul 24 18:19:46 2013 +0100
@@ -484,6 +484,10 @@
 
     MainWindow::FileOpenStatus status = MainWindow::FileOpenFailed;
 
+#ifdef Q_OS_WIN32
+    path.replace("\\", "/");
+#endif
+
     if (path.endsWith("sv")) {
         if (!haveSession) {
             status = m_mainWindow->openSessionFile(path);