mirror of
https://github.com/LMMS/lmms.git
synced 2026-04-01 04:44:07 -04:00
Workaround Qt5 bug that fails to remove separator at end of File/Help menus (#3350)
Prevent dangling separator at end of menus on macOS Per https://bugreports.qt.io/browse/QTBUG-40071
This commit is contained in:
committed by
Tres Finocchiaro
parent
80e2374bcb
commit
b6441b7f18
@@ -315,7 +315,10 @@ void MainWindow::finalize()
|
||||
SLOT( exportProjectMidi() ),
|
||||
Qt::CTRL + Qt::Key_M );*/
|
||||
|
||||
// Prevent dangling separator at end of menu per https://bugreports.qt.io/browse/QTBUG-40071
|
||||
#if !(defined(LMMS_BUILD_APPLE) && (QT_VERSION >= 0x050000) && (QT_VERSION < 0x050600))
|
||||
project_menu->addSeparator();
|
||||
#endif
|
||||
project_menu->addAction( embed::getIconPixmap( "exit" ), tr( "&Quit" ),
|
||||
qApp, SLOT( closeAllWindows() ),
|
||||
Qt::CTRL + Qt::Key_Q );
|
||||
@@ -390,7 +393,10 @@ void MainWindow::finalize()
|
||||
tr( "What's This?" ),
|
||||
this, SLOT( enterWhatsThisMode() ) );
|
||||
|
||||
// Prevent dangling separator at end of menu per https://bugreports.qt.io/browse/QTBUG-40071
|
||||
#if !(defined(LMMS_BUILD_APPLE) && (QT_VERSION >= 0x050000) && (QT_VERSION < 0x050600))
|
||||
help_menu->addSeparator();
|
||||
#endif
|
||||
help_menu->addAction( embed::getIconPixmap( "icon" ), tr( "About" ),
|
||||
this, SLOT( aboutLMMS() ) );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user