From 48d7e7cf50e0bb38abfdc679745ec9034ba6e2d3 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sun, 29 Nov 2009 18:54:58 -0700 Subject: [PATCH] Bugfix: crash dealing with clearing the project FxMixerView was being cleared before fxMixer which caused a crash. Fixed. --- src/core/song.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/core/song.cpp b/src/core/song.cpp index 0d2d95558..9b421a052 100644 --- a/src/core/song.cpp +++ b/src/core/song.cpp @@ -729,6 +729,8 @@ void song::clearProject() } engine::getMixer()->lock(); + engine::fxMixer()->clear(); + if( engine::getBBEditor() ) { engine::getBBEditor()->clearAllTracks(); @@ -737,15 +739,18 @@ void song::clearProject() { engine::getSongEditor()->clearAllTracks(); } + + // depends on the fxMixer being cleared if( engine::fxMixerView() ) { engine::fxMixerView()->clear(); } + QCoreApplication::sendPostedEvents(); engine::getBBTrackContainer()->clearAllTracks(); clearAllTracks(); - engine::fxMixer()->clear(); + if( engine::getAutomationEditor() ) {