MainWindow: stop playing song when asking whether to save project
Users reported the last buffer played repeatedly while the dialog asking whether to save project is shown. This behaviour even continued while loading a project. An easy workaround for this is to stop playing song (or whichever TrackContainer is active at the moment) in MainWindow::mayChangeProject(). Closes bug #2904781.
This commit is contained in:
@@ -823,6 +823,8 @@ void MainWindow::resetWindowTitle()
|
||||
|
||||
bool MainWindow::mayChangeProject()
|
||||
{
|
||||
engine::getSong()->stop();
|
||||
|
||||
if( !engine::getSong()->isModified() )
|
||||
{
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user