Fix too small height of the carla instrument window (#5829)

This commit is contained in:
Hyunjin Song
2020-12-07 13:55:50 +09:00
committed by GitHub
parent b701e82e3b
commit 3ad0462d44

View File

@@ -1551,14 +1551,14 @@ InstrumentTrackWindow::InstrumentTrackWindow( InstrumentTrackView * _itv ) :
vlayout->addWidget( m_pianoView );
setModel( _itv->model() );
updateInstrumentView();
QMdiSubWindow* subWin = gui->mainWindow()->addWindowedWidget( this );
Qt::WindowFlags flags = subWin->windowFlags();
flags |= Qt::MSWindowsFixedSizeDialogHint;
flags &= ~Qt::WindowMaximizeButtonHint;
subWin->setWindowFlags( flags );
updateInstrumentView();
// Hide the Size and Maximize options from the system menu
// since the dialog size is fixed.
QMenu * systemMenu = subWin->systemMenu();