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.
(cherry picked from commit 04699ba412)
This commit is contained in:
Tobias Doerffel
2009-12-17 21:10:21 +01:00
parent 275eb7ac2b
commit e852c8b267

View File

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