From 0bea8a881d21de62a37f21a8b6157cd9cd51648d Mon Sep 17 00:00:00 2001 From: Jonathan White Date: Thu, 28 Dec 2017 18:00:33 -0500 Subject: [PATCH] Prevent shadowing of application settings on MacOS --- src/gui/MainWindow.cpp | 3 --- src/gui/MainWindow.ui | 12 ++++++++++++ 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/gui/MainWindow.cpp b/src/gui/MainWindow.cpp index 08840cdb0..bc7b3a89e 100644 --- a/src/gui/MainWindow.cpp +++ b/src/gui/MainWindow.cpp @@ -193,7 +193,6 @@ MainWindow::MainWindow() m_ui->actionChangeMasterKey->setIcon(filePath()->icon("actions", "database-change-key", false)); m_ui->actionLockDatabases->setIcon(filePath()->icon("actions", "document-encrypt", false)); m_ui->actionQuit->setIcon(filePath()->icon("actions", "application-exit")); - m_ui->actionQuit->setMenuRole(QAction::QuitRole); m_ui->actionEntryNew->setIcon(filePath()->icon("actions", "entry-new", false)); m_ui->actionEntryClone->setIcon(filePath()->icon("actions", "entry-clone", false)); @@ -210,11 +209,9 @@ MainWindow::MainWindow() m_ui->actionGroupEmptyRecycleBin->setIcon(filePath()->icon("actions", "group-empty-trash", false)); m_ui->actionSettings->setIcon(filePath()->icon("actions", "configure")); - m_ui->actionSettings->setMenuRole(QAction::PreferencesRole); m_ui->actionPasswordGenerator->setIcon(filePath()->icon("actions", "password-generator", false)); m_ui->actionAbout->setIcon(filePath()->icon("actions", "help-about")); - m_ui->actionAbout->setMenuRole(QAction::AboutRole); m_actionMultiplexer.connect(SIGNAL(currentModeChanged(DatabaseWidget::Mode)), this, SLOT(setMenuActionState(DatabaseWidget::Mode))); diff --git a/src/gui/MainWindow.ui b/src/gui/MainWindow.ui index d0cded220..c4d782f08 100644 --- a/src/gui/MainWindow.ui +++ b/src/gui/MainWindow.ui @@ -297,11 +297,17 @@ &Quit + + QAction::QuitRole + &About + + QAction::AboutRole + @@ -408,6 +414,9 @@ Database settings + + QAction::NoRole + @@ -451,6 +460,9 @@ &Settings + + QAction::PreferencesRole +