instantiate automation-pattern before loading settings of it - fixes crashes when loading projects with automation inside
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/branches/lmms-mv@710 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -309,7 +309,7 @@ void automatableModel<T, EDIT_STEP_TYPE>::loadSettings(
|
||||
const QString & _name )
|
||||
{
|
||||
QDomNode node = _this.namedItem( automationPattern::classNodeName() );
|
||||
if( node.isElement() )
|
||||
if( node.isElement() && getAutomationPattern() )
|
||||
{
|
||||
node = node.namedItem( _name );
|
||||
if( node.isElement() )
|
||||
|
||||
Reference in New Issue
Block a user