diff --git a/plugins/Sf2Player/Sf2Player.cpp b/plugins/Sf2Player/Sf2Player.cpp index 57311c2f720..1eb75627800 100644 --- a/plugins/Sf2Player/Sf2Player.cpp +++ b/plugins/Sf2Player/Sf2Player.cpp @@ -265,10 +265,14 @@ void Sf2Instrument::saveSettings( QDomDocument & _doc, QDomElement & _this ) void Sf2Instrument::loadSettings( const QDomElement & _this ) { - openFile( _this.attribute( "src" ), false ); - m_patchNum.loadSettings( _this, "patch" ); - m_bankNum.loadSettings( _this, "bank" ); - + QString src = _this.attribute("src"); + if (!src.isEmpty()) + { + openFile(src, false); + m_patchNum.loadSettings(_this, "patch"); + m_bankNum.loadSettings(_this, "bank"); + } + m_gain.loadSettings( _this, "gain" ); m_reverbOn.loadSettings( _this, "reverbOn" );