From a074cffa5b094297125b1d27c39a35b7b8ef91de Mon Sep 17 00:00:00 2001 From: Norman Heino Date: Sun, 5 May 2019 13:39:52 +0200 Subject: [PATCH] Fix macOS application menu --- oscar/mainwindow.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/oscar/mainwindow.cpp b/oscar/mainwindow.cpp index 21039aed..82800b70 100644 --- a/oscar/mainwindow.cpp +++ b/oscar/mainwindow.cpp @@ -117,10 +117,9 @@ void MainWindow::SetupGUI() setWindowTitle(STR_TR_OSCAR + QString(" %1").arg(version)); #ifdef Q_OS_MAC - ui->action_About->setMenuRole(QAction::ApplicationSpecificRole); ui->action_Preferences->setMenuRole(QAction::ApplicationSpecificRole); - ui->action_Exit->setMenuRole(QAction::ApplicationSpecificRole); + ui->action_Preferences->setShortcuts(QKeySequence::Preferences); #endif ui->actionToggle_Line_Cursor->setChecked(AppSetting->lineCursorMode());