# HG changeset patch # User Chris Cannam # Date 1374686386 -3600 # Node ID 4901db78f907f4c64b4d00ecaef3aac72ff6a3e6 # Parent c43b3c09da6390a20ad02e5cb2f1b9c075658414 Replace path separators on Windows with command-line paths diff -r c43b3c09da63 -r 4901db78f907 main/main.cpp --- 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);