diff --git a/src/libs/ui/mainwindow.cpp b/src/libs/ui/mainwindow.cpp index 3eebc44..539717e 100644 --- a/src/libs/ui/mainwindow.cpp +++ b/src/libs/ui/mainwindow.cpp @@ -186,6 +186,12 @@ MainWindow::MainWindow(Core::Application *app, QWidget *parent) : currentTab()->activateSearchBar(); }); + if (QKeySequence(QKeySequence::Preferences).isEmpty()) { + ui->actionPreferences->setShortcut(QStringLiteral("Ctrl+,")); + } else { + ui->actionPreferences->setShortcut(QKeySequence::Quit); + } + connect(ui->actionPreferences, &QAction::triggered, [this]() { m_globalShortcut->setEnabled(false); QScopedPointer dialog(new SettingsDialog(this));