Fix cleanup logic error
This commit is contained in:
@@ -272,12 +272,10 @@ void VstEffectControlDialog::showEvent(QShowEvent *_se)
|
||||
|
||||
VstEffectControlDialog::~VstEffectControlDialog()
|
||||
{
|
||||
#ifndef LMMS_BUILD_LINUX
|
||||
if (m_pluginWidget && layout()) {
|
||||
layout()->removeWidget(m_pluginWidget);
|
||||
m_pluginWidget->setParent(nullptr);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user