diff --git a/plugins/zynaddsubfx/ZynAddSubFx.cpp b/plugins/zynaddsubfx/ZynAddSubFx.cpp index 7fe8663f6..2574409c0 100644 --- a/plugins/zynaddsubfx/ZynAddSubFx.cpp +++ b/plugins/zynaddsubfx/ZynAddSubFx.cpp @@ -209,7 +209,13 @@ void ZynAddSubFxInstrument::loadSettings( const QDomElement & _this ) m_forwardMidiCcModel.loadSettings( _this, "forwardmidicc" ); QDomDocument doc; - doc.appendChild( doc.importNode( _this.firstChild(), true ) ); + QDomElement data = _this.firstChildElement( "ZynAddSubFX-data" ); + if( data.isNull() ) + { + data = _this.firstChildElement(); + } + doc.appendChild( doc.importNode( data, true ) ); + QTemporaryFile tf; tf.setAutoRemove( false ); if( tf.open() )