From 7084ec0be6d4c47de27498c4c4ad7909c5748add Mon Sep 17 00:00:00 2001 From: Mike Choi Date: Thu, 7 Feb 2013 21:58:55 +0100 Subject: [PATCH] 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 --- plugins/vst_effect/VstEffect.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/vst_effect/VstEffect.cpp b/plugins/vst_effect/VstEffect.cpp index a6286d38e..a4215cc18 100644 --- a/plugins/vst_effect/VstEffect.cpp +++ b/plugins/vst_effect/VstEffect.cpp @@ -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 ) ); }