From eb56db155f2d7ff0ed308aec18c2900cd7d69240 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Mon, 8 Dec 2008 20:44:12 +0000 Subject: [PATCH] win32-version: fixed crash when using VST plugins without GUI git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1888 0778d3d1-df1d-0410-868b-ea421aaaa00d --- ChangeLog | 8 ++++++++ plugins/vst_base/vst_plugin.cpp | 5 ++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 36f00b9c0..919e998ca 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2008-12-08 Tobias Doerffel + + * plugins/vst_base/vst_plugin.cpp: + win32-version: fixed crash when using VST plugins without GUI + + * include/effect_chain.h: + export effectChain for properly building FLP import DLL + 2008-12-08 Andrew Kelley * src/gui/piano_roll.cpp: diff --git a/plugins/vst_base/vst_plugin.cpp b/plugins/vst_base/vst_plugin.cpp index a1f579306..8ea2c814b 100644 --- a/plugins/vst_base/vst_plugin.cpp +++ b/plugins/vst_base/vst_plugin.cpp @@ -196,7 +196,10 @@ void vstPlugin::showEditor( QWidget * _parent ) xe->show(); #endif - m_pluginWidget->show(); + if( m_pluginWidget ) + { + m_pluginWidget->show(); + } }