Ensuring playback is halted once file selection is confirmed in 'Open project' dialog; fixes #1384

This commit is contained in:
Christopher L. Simons
2015-03-10 07:05:10 -04:00
parent 3f8cfbd7a8
commit 393eacad7d

View File

@@ -767,6 +767,8 @@ void MainWindow::openProject()
if( ofd.exec () == QDialog::Accepted &&
!ofd.selectedFiles().isEmpty() )
{
Engine::getSong()->stop();
setCursor( Qt::WaitCursor );
Engine::getSong()->loadProject(
ofd.selectedFiles()[0] );