From 1df1745c6373512289c3df5ca043c5e32d09e01d Mon Sep 17 00:00:00 2001 From: Jake Petroules Date: Thu, 15 Jun 2017 14:17:08 -0700 Subject: [PATCH] Properly mark "Check for Updates" menu item as an app-specific item Check for Updates menu items are supposed to be displayed in the application menu on macOS, not the Help menu as for other platforms. Change-Id: I8d13f2658b3b0e0b9b01ef5b64bd7804d6b7e424 Reviewed-by: Eike Ziller --- src/plugins/updateinfo/updateinfoplugin.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/updateinfo/updateinfoplugin.cpp b/src/plugins/updateinfo/updateinfoplugin.cpp index ec59aa52ea5..f54d15fd5e3 100644 --- a/src/plugins/updateinfo/updateinfoplugin.cpp +++ b/src/plugins/updateinfo/updateinfoplugin.cpp @@ -213,6 +213,7 @@ bool UpdateInfoPlugin::initialize(const QStringList & /* arguments */, QString * addAutoReleasedObject(new SettingsPage(this)); QAction *checkForUpdatesAction = new QAction(tr("Check for Updates"), this); + checkForUpdatesAction->setMenuRole(QAction::ApplicationSpecificRole); Core::Command *checkForUpdatesCommand = Core::ActionManager::registerAction(checkForUpdatesAction, "Updates.CheckForUpdates"); connect(checkForUpdatesAction, &QAction::triggered, this, &UpdateInfoPlugin::startCheckForUpdates); ActionContainer *const helpContainer = ActionManager::actionContainer(Core::Constants::M_HELP);