From b6d32efeff1cb246d9f70e22a2e7e0daea8b12a3 Mon Sep 17 00:00:00 2001 From: malcops Date: Tue, 30 Jul 2019 07:36:30 -0400 Subject: [PATCH] fixup! fixup! fixup! Issue #4984 Remove maximize from Meter (Metro) menu --- src/gui/widgets/TempoSyncKnob.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/gui/widgets/TempoSyncKnob.cpp b/src/gui/widgets/TempoSyncKnob.cpp index 7bdc7c03899..d769fd831d0 100644 --- a/src/gui/widgets/TempoSyncKnob.cpp +++ b/src/gui/widgets/TempoSyncKnob.cpp @@ -291,12 +291,11 @@ void TempoSyncKnob::showCustom() if( m_custom == NULL ) { m_custom = new MeterDialog( gui->mainWindow()->workspace() ); - QMdiSubWindow * m_subWindow; - m_subWindow = gui->mainWindow()->addWindowedWidget( m_custom ); - Qt::WindowFlags flags = m_subWindow->windowFlags(); + QMdiSubWindow * subWindow = gui->mainWindow()->addWindowedWidget( m_custom ); + Qt::WindowFlags flags = subWindow->windowFlags(); flags &= ~Qt::WindowMaximizeButtonHint; - m_subWindow->setWindowFlags( flags ); - m_subWindow->setFixedSize( m_subWindow->size() ); + subWindow->setWindowFlags( flags ); + subWindow->setFixedSize( subWindow->size() ); m_custom->setWindowTitle( "Meter" ); m_custom->setModel( &model()->m_custom ); }