Mercurial > hg > sonic-visualiser
comparison 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 |
comparison
equal
deleted
inserted
replaced
598:c43b3c09da63 | 599:4901db78f907 |
---|---|
482 static bool haveMainModel = false; | 482 static bool haveMainModel = false; |
483 static bool havePriorCommandLineModel = false; | 483 static bool havePriorCommandLineModel = false; |
484 | 484 |
485 MainWindow::FileOpenStatus status = MainWindow::FileOpenFailed; | 485 MainWindow::FileOpenStatus status = MainWindow::FileOpenFailed; |
486 | 486 |
487 #ifdef Q_OS_WIN32 | |
488 path.replace("\\", "/"); | |
489 #endif | |
490 | |
487 if (path.endsWith("sv")) { | 491 if (path.endsWith("sv")) { |
488 if (!haveSession) { | 492 if (!haveSession) { |
489 status = m_mainWindow->openSessionFile(path); | 493 status = m_mainWindow->openSessionFile(path); |
490 if (status == MainWindow::FileOpenSucceeded) { | 494 if (status == MainWindow::FileOpenSucceeded) { |
491 haveSession = true; | 495 haveSession = true; |