From 56c5390888c078e9c5e84af153dd66a6a9988148 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Mon, 8 Dec 2008 20:46:35 +0000 Subject: [PATCH] win32-version: fixed crash when using VST plugins without GUI (stable backport) git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/branches/lmms/stable-0.4@1890 0778d3d1-df1d-0410-868b-ea421aaaa00d --- ChangeLog | 6 ++++++ plugins/vst_base/vst_plugin.cpp | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d7bdbbad3..772285ef6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +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 + * include/song_editor.h: * src/gui/song_editor.cpp: fixed recent commit (m_timeLine was not declared as member yet) 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(); + } }