Mercurial > hg > sonic-visualiser
comparison main/main.cpp @ 603:fba4839f8811
Replace path separators on Windows with command-line paths
author | Chris Cannam |
---|---|
date | Wed, 24 Jul 2013 18:30:17 +0100 |
parents | b8801b96426b |
children | fa99b4775d35 c0a20cd1a9ff |
comparison
equal
deleted
inserted
replaced
602:b8801b96426b | 603:fba4839f8811 |
---|---|
480 static bool haveMainModel = false; | 480 static bool haveMainModel = false; |
481 static bool havePriorCommandLineModel = false; | 481 static bool havePriorCommandLineModel = false; |
482 | 482 |
483 MainWindow::FileOpenStatus status = MainWindow::FileOpenFailed; | 483 MainWindow::FileOpenStatus status = MainWindow::FileOpenFailed; |
484 | 484 |
485 #ifdef Q_OS_WIN32 | |
486 path.replace("\\", "/"); | |
487 #endif | |
488 | |
485 if (path.endsWith("sv")) { | 489 if (path.endsWith("sv")) { |
486 if (!haveSession) { | 490 if (!haveSession) { |
487 status = m_mainWindow->openSessionFile(path); | 491 status = m_mainWindow->openSessionFile(path); |
488 if (status == MainWindow::FileOpenSucceeded) { | 492 if (status == MainWindow::FileOpenSucceeded) { |
489 haveSession = true; | 493 haveSession = true; |