Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fix RemoteVstPlugin not exiting when effect removed
- Loading branch information
|
@@ -289,7 +289,12 @@ void VstEffectControlDialog::showEvent(QShowEvent *_se) |
|
|
|
|
|
VstEffectControlDialog::~VstEffectControlDialog() |
|
|
{ |
|
|
//delete m_pluginWidget; |
|
|
#if !(QT_VERSION < 0x050000 && defined(LMMS_BUILD_LINUX)) |
|
|
if (m_pluginWidget && layout()) { |
|
|
layout()->removeWidget(m_pluginWidget); |
|
|
m_pluginWidget->setParent(nullptr); |
|
|
} |
|
|
#endif |
|
|
} |
|
|
|
|
|
|
|
|
|
@@ -164,18 +164,7 @@ EffectView::EffectView( Effect * _model, QWidget * _parent ) : |
|
|
|
|
|
EffectView::~EffectView() |
|
|
{ |
|
|
|
|
|
#ifdef LMMS_BUILD_LINUX |
|
|
|
|
|
delete m_subWindow; |
|
|
#else |
|
|
if( m_subWindow ) |
|
|
{ |
|
|
// otherwise on win32 build VST GUI can get lost |
|
|
m_subWindow->hide(); |
|
|
} |
|
|
#endif |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|