Bugfix: crash dealing with clearing the project
FxMixerView was being cleared before fxMixer which caused a crash. Fixed.
This commit is contained in:
@@ -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() )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user