InstrumentTrack: in compat code of loadTrackSpecificSettings() also

check for nodeName being "connection" - do not try to load an instrument
called "connection" if one of the basic parameters of the InstrumentTrack
is automated
This commit is contained in:
Tobias Doerffel
2009-03-13 09:47:29 +01:00
parent 46097b72d7
commit 22c877d4f9

View File

@@ -790,7 +790,8 @@ void instrumentTrack::loadTrackSpecificSettings( const QDomElement & _this )
// compat code - if node-name doesn't match any known
// one, we assume that it is an instrument-plugin
// which we'll try to load
else if( automationPattern::classNodeName() !=
else if( node.nodeName() != "connection" &&
automationPattern::classNodeName() !=
node.nodeName() &&
!node.toElement().hasAttribute( "id" ) )
{