Mercurial > hg > sonic-visualiser
changeset 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 | f3842da4d510 |
files | main/main.cpp |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
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);