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:
Tobias Doerffel
2009-12-17 21:10:21 +01:00
parent bb57d53770
commit 04699ba412

View File

@@ -823,6 +823,8 @@ void MainWindow::resetWindowTitle()
bool MainWindow::mayChangeProject()
{
engine::getSong()->stop();
if( !engine::getSong()->isModified() )
{
return true;