Fix cleanup logic error

This commit is contained in:
Lukas W
2018-06-17 14:03:01 +02:00
parent da1c78ce86
commit fefec9a8c6

View File

@@ -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
}