From e852c8b26771a11dd4c5a738f2b8fe6dec5c558e Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Thu, 17 Dec 2009 21:10:21 +0100 Subject: [PATCH] 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 04699ba4121658665cec728026bfd34c7915ea22) --- src/gui/MainWindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/MainWindow.cpp b/src/gui/MainWindow.cpp index 137b2a4fa..2526f2215 100644 --- a/src/gui/MainWindow.cpp +++ b/src/gui/MainWindow.cpp @@ -548,6 +548,8 @@ void MainWindow::resetWindowTitle( void ) bool MainWindow::mayChangeProject( void ) { + engine::getSong()->stop(); + if( !engine::getSong()->isModified() ) { return( TRUE );