Skip to content

Commit

Permalink
Remove maximize from Meter(Metro) menu (#5071)
Browse files Browse the repository at this point in the history
Fixes #4984.
  • Loading branch information
malcops authored and PhysSong committed Sep 8, 2019
1 parent 84d1091 commit e1236f5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/gui/widgets/TempoSyncKnob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,11 @@ void TempoSyncKnob::showCustom()
if( m_custom == NULL )
{
m_custom = new MeterDialog( gui->mainWindow()->workspace() );
gui->mainWindow()->addWindowedWidget( m_custom );
QMdiSubWindow * subWindow = gui->mainWindow()->addWindowedWidget( m_custom );
Qt::WindowFlags flags = subWindow->windowFlags();
flags &= ~Qt::WindowMaximizeButtonHint;
subWindow->setWindowFlags( flags );
subWindow->setFixedSize( subWindow->size() );
m_custom->setWindowTitle( "Meter" );
m_custom->setModel( &model()->m_custom );
}
Expand Down

0 comments on commit e1236f5

Please sign in to comment.