From e75f29ab03d6cc0fdad86bbb8cb3666410f769d4 Mon Sep 17 00:00:00 2001 From: Anton Filimonov Date: Sun, 28 Nov 2021 20:36:10 +0100 Subject: [PATCH] Set preferences dialog for Mac (#428) --- src/ui/src/mainwindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ui/src/mainwindow.cpp b/src/ui/src/mainwindow.cpp index bdc956f2f..accc2c0d2 100644 --- a/src/ui/src/mainwindow.cpp +++ b/src/ui/src/mainwindow.cpp @@ -393,6 +393,7 @@ void MainWindow::createActions() [ this ]( auto ) { this->editHighlighters(); } ); optionsAction = new QAction( tr( "&Options..." ), this ); + optionsAction->setMenuRole(QAction::PreferencesRole); optionsAction->setStatusTip( tr( "Show the Options box" ) ); connect( optionsAction, &QAction::triggered, this, [ this ]( auto ) { this->options(); } );