aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJake Petroules <jake.petroules@qt.io>2017-06-15 14:17:08 -0700
committerJake Petroules <jake.petroules@qt.io>2017-06-19 17:39:40 +0000
commit1df1745c6373512289c3df5ca043c5e32d09e01d (patch)
treeb609ee7381e193d06e563be0d5ae4ef4195a1470
parentcce1e130d7125fdee30eaf283f6adba0fcd3b1cf (diff)
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 <eike.ziller@qt.io>
-rw-r--r--src/plugins/updateinfo/updateinfoplugin.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/updateinfo/updateinfoplugin.cpp b/src/plugins/updateinfo/updateinfoplugin.cpp
index ec59aa52ea..f54d15fd5e 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);