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
This commit is contained in:
Steffen Baranowsky
2017-03-20 20:36:32 +01:00
committed by Javier Serrano Polo
parent 9543800c32
commit 17a6f379e0

View File

@@ -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 );
}