Skip to content

Commit

Permalink
Don't create MDI subwindow for VSTi without GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
DomClark authored and zonkmachine committed Dec 7, 2018
1 parent c3b07a5 commit 277e8b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/vestige/vestige.cpp
Expand Up @@ -109,6 +109,9 @@ class VstInstrumentPlugin : public VstPlugin
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() );
Expand Down

0 comments on commit 277e8b6

Please sign in to comment.