VST Effects: preserve effect name after LMMS project reload

This patch will set plugin name (information which is not stored with lmms
project file) according plugin file, without *.dll, when is LMMS project
loaded from the file.

Future verion could maybe use PluginBrowser or EffectSellectDialog for the
same.

Signed-off-by: Tobias Doerffel <tobias.doerffel@gmail.com>
This commit is contained in:
Mike Choi
2013-02-07 21:58:55 +01:00
committed by Tobias Doerffel
parent 0ef2997ece
commit 7084ec0be6

View File

@@ -65,7 +65,8 @@ VstEffect::VstEffect( Model * _parent,
{
openPlugin( m_key.attributes["file"] );
}
setDisplayName( m_key.name );
setDisplayName( m_key.attributes["file"].section( ".dll", 0, 0 ).isEmpty()
? m_key.name : m_key.attributes["file"].section( ".dll", 0, 0 ) );
}