Don't create MDI subwindow for VSTi without GUI

This commit is contained in:
Dominic Clark
2018-11-25 15:42:14 +00:00
committed by Oskar Wallgren
parent c3b07a5092
commit 277e8b6444

View File

@@ -109,6 +109,9 @@ public:
void createUI( QWidget *parent ) override
{
Q_UNUSED(parent);
if ( !hasEditor() ) {
return;
}
if ( embedMethod() != "none" ) {
m_pluginSubWindow.reset(new vstSubWin( gui->mainWindow()->workspace() ));
VstPlugin::createUI( m_pluginSubWindow.get() );