diff --git a/src/core/AutomatableModel.cpp b/src/core/AutomatableModel.cpp index fecef621c..eb963fa2c 100644 --- a/src/core/AutomatableModel.cpp +++ b/src/core/AutomatableModel.cpp @@ -161,10 +161,8 @@ void AutomatableModel::loadSettings( const QDomElement& element, const QString& { changeID( node.toElement().attribute( "id" ).toInt() ); setValue( node.toElement().attribute( "value" ).toFloat() ); - return; } - - if( element.hasAttribute( name ) ) + else if( element.hasAttribute( name ) ) { setInitValue( element.attribute( name ).toFloat() ); }