Permalink
Browse files

Fix crash when re-opening VST effect manage dialog

Unset Qt::WA_DeleteOnClose for the dialog to avoid deletion when closed
  • Loading branch information...
PhysSong committed May 23, 2018
1 parent 235e8ee commit 24ae559de55bf09d3caf2d5594dcfec8a679e67b
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugins/VstEffect/VstEffectControls.cpp
@@ -317,7 +317,7 @@ manageVSTEffectView::manageVSTEffectView( VstEffect * _eff, VstEffectControls *
m_vi->m_subWindow->setWidget(m_vi->m_scrollArea);
m_vi->m_subWindow->setWindowTitle( _eff->m_plugin->name() + tr( " - VST parameter control" ) );
m_vi->m_subWindow->setWindowIcon( PLUGIN_NAME::getIconPixmap( "logo" ) );
//m_vi->m_subWindow->setAttribute(Qt::WA_DeleteOnClose);
m_vi->m_subWindow->setAttribute(Qt::WA_DeleteOnClose, false);
l->setContentsMargins( 20, 10, 10, 10 );

0 comments on commit 24ae559

Please sign in to comment.