Fixes #4781: Don't disconnect LADSPA automation on export

This commit is contained in:
T0NIT0 RMX
2019-05-14 21:19:30 +02:00
committed by Johannes Lorenz
parent 4b4b470550
commit ec64de0723

View File

@@ -796,6 +796,16 @@ void AutomationPattern::resolveAllIDs()
{
a->addObject( dynamic_cast<AutomatableModel *>( o ), false );
}
else
{
// FIXME: Remove this block once the automation system gets fixed
// This is a temporary fix for https://github.com/LMMS/lmms/issues/4781
o = Engine::projectJournal()->journallingObject(ProjectJournal::idToSave(*k));
if( o && dynamic_cast<AutomatableModel *>( o ) )
{
a->addObject( dynamic_cast<AutomatableModel *>( o ), false );
}
}
}
}
a->m_idsToResolve.clear();