diff --git a/plugins/VstEffect/VstEffectControlDialog.cpp b/plugins/VstEffect/VstEffectControlDialog.cpp index ce1f781450b..8d63b4cb257 100644 --- a/plugins/VstEffect/VstEffectControlDialog.cpp +++ b/plugins/VstEffect/VstEffectControlDialog.cpp @@ -59,7 +59,7 @@ VstEffectControlDialog::VstEffectControlDialog( VstEffectControls * _ctl ) : if( _ctl != NULL && _ctl->m_effect != NULL && _ctl->m_effect->m_plugin != NULL ) { - m_plugin = _ctl->m_effect->m_plugin.data(); + m_plugin = _ctl->m_effect->m_plugin; embed_vst = m_plugin->embedMethod() != "none"; if (embed_vst) { @@ -83,7 +83,7 @@ VstEffectControlDialog::VstEffectControlDialog( VstEffectControls * _ctl ) : SLOT( togglePluginUI( bool ) ) ); } else { connect( btn, SIGNAL( clicked() ), - m_plugin, SLOT( toggleUI() ) ); + m_plugin.data(), SLOT( toggleUI() ) ); } btn->setMinimumWidth( 78 ); diff --git a/plugins/VstEffect/VstEffectControlDialog.h b/plugins/VstEffect/VstEffectControlDialog.h index 954681d3dbf..e2091501931 100644 --- a/plugins/VstEffect/VstEffectControlDialog.h +++ b/plugins/VstEffect/VstEffectControlDialog.h @@ -31,7 +31,7 @@ #include #include #include -#include +#include class VstEffectControls; @@ -61,7 +61,7 @@ class VstEffectControlDialog : public EffectControlDialog PixmapButton * m_managePluginButton; PixmapButton * m_savePresetButton; - QPointer m_plugin; + QSharedPointer m_plugin; QLabel * tbLabel;