From 17a6f379e074c7ba8c152c2388afc44e4efe145e Mon Sep 17 00:00:00 2001 From: Steffen Baranowsky Date: Mon, 20 Mar 2017 20:36:32 +0100 Subject: [PATCH] fixes the wrong order of controller by loading a project (#3438) * fixes the wrong order of controller by loading a project * changes the approach for the fix --- plugins/peak_controller_effect/peak_controller_effect.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/peak_controller_effect/peak_controller_effect.cpp b/plugins/peak_controller_effect/peak_controller_effect.cpp index 7ca7cbbb6..59c91f3d1 100644 --- a/plugins/peak_controller_effect/peak_controller_effect.cpp +++ b/plugins/peak_controller_effect/peak_controller_effect.cpp @@ -67,7 +67,10 @@ PeakControllerEffect::PeakControllerEffect( m_autoController( NULL ) { m_autoController = new PeakController( Engine::getSong(), this ); - Engine::getSong()->addController( m_autoController ); + if( !Engine::getSong()->isLoadingProject() ) + { + Engine::getSong()->addController( m_autoController ); + } PeakController::s_effects.append( this ); }