Skip to content

Commit

Permalink
Fix too small height of the carla instrument window (LMMS#5829)
Browse files Browse the repository at this point in the history
  • Loading branch information
PhysSong authored and IanCaio committed Mar 28, 2021
1 parent 6ac9a58 commit fc09a23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tracks/InstrumentTrack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit fc09a23

Please sign in to comment.