Skip to content

Commit

Permalink
Fix RemoteVstPlugin not exiting when effect removed
Browse files Browse the repository at this point in the history
  • Loading branch information
DomClark committed Apr 12, 2018
1 parent 4ba0861 commit eb560a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions plugins/VstEffect/VstEffectControlDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,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;
m_plugin = _ctl->m_effect->m_plugin.data();
embed_vst = m_plugin->embedMethod() != "none";
m_needsEmbed = embed_vst;

Expand All @@ -85,7 +85,7 @@ VstEffectControlDialog::VstEffectControlDialog( VstEffectControls * _ctl ) :
SLOT( togglePluginUI( bool ) ) );
} else {
connect( btn, SIGNAL( clicked() ),
m_plugin.data(), SLOT( toggleUI() ) );
m_plugin, SLOT( toggleUI() ) );
}

btn->setMinimumWidth( 78 );
Expand Down
4 changes: 2 additions & 2 deletions plugins/VstEffect/VstEffectControlDialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include <QObject>
#include <QPainter>
#include <QLabel>
#include <QSharedPointer>
#include <QPointer>
#if defined(LMMS_BUILD_LINUX) && QT_VERSION < 0x050000
# include <QShowEvent>
#endif
Expand Down Expand Up @@ -67,7 +67,7 @@ class VstEffectControlDialog : public EffectControlDialog
PixmapButton * m_managePluginButton;
PixmapButton * m_savePresetButton;

QSharedPointer<VstPlugin> m_plugin;
QPointer<VstPlugin> m_plugin;

QLabel * tbLabel;

Expand Down

0 comments on commit eb560a7

Please sign in to comment.