Mercurial > hg > sonic-visualiser
diff main/main.cpp @ 844:ce4d9e149086
Use openPath instead of open() when opening local file or URL (for progress indicator). I think I didn't realise this distinction between the two functions, which formerly were both named open().
author | Chris Cannam |
---|---|
date | Tue, 09 Sep 2014 16:33:52 +0100 |
parents | 7374badd5f9e |
children | 62198dde171e |
line wrap: on
line diff
--- a/main/main.cpp Wed Sep 03 13:12:38 2014 +0100 +++ b/main/main.cpp Tue Sep 09 16:33:52 2014 +0100 @@ -512,18 +512,18 @@ } if (status != MainWindow::FileOpenSucceeded) { if (!haveMainModel) { - status = m_mainWindow->open(path, MainWindow::ReplaceSession); + status = m_mainWindow->openPath(path, MainWindow::ReplaceSession); if (status == MainWindow::FileOpenSucceeded) { haveMainModel = true; } } else { if (haveSession && !havePriorCommandLineModel) { - status = m_mainWindow->open(path, MainWindow::AskUser); + status = m_mainWindow->openPath(path, MainWindow::AskUser); if (status == MainWindow::FileOpenSucceeded) { havePriorCommandLineModel = true; } } else { - status = m_mainWindow->open(path, MainWindow::CreateAdditionalModel); + status = m_mainWindow->openPath(path, MainWindow::CreateAdditionalModel); } } }