From 04699ba4121658665cec728026bfd34c7915ea22 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. --- src/gui/MainWindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/MainWindow.cpp b/src/gui/MainWindow.cpp index adfb00918..67929e475 100644 --- a/src/gui/MainWindow.cpp +++ b/src/gui/MainWindow.cpp @@ -823,6 +823,8 @@ void MainWindow::resetWindowTitle() bool MainWindow::mayChangeProject() { + engine::getSong()->stop(); + if( !engine::getSong()->isModified() ) { return true;