diff --git a/include/automatable_model_templates.h b/include/automatable_model_templates.h index ab5bb2add..18691ed00 100644 --- a/include/automatable_model_templates.h +++ b/include/automatable_model_templates.h @@ -309,7 +309,7 @@ void automatableModel::loadSettings( const QString & _name ) { QDomNode node = _this.namedItem( automationPattern::classNodeName() ); - if( node.isElement() ) + if( node.isElement() && getAutomationPattern() ) { node = node.namedItem( _name ); if( node.isElement() )