forked from qt-creator/qt-creator
macOS: Fix missing "Search" item in help menu
Define the menu as the help menu directly in the the NSApplication, since the OS built-in heuristics based on the menu name easily fails. Fixes: QTCREATORBUG-24751 Change-Id: I9aa50a46099e295ec0c38ee8a9e88d75d41c74ad Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
@@ -514,6 +514,7 @@ void MainWindow::registerDefaultContainers()
|
||||
ac = ActionManager::createMenu(Constants::M_HELP);
|
||||
menubar->addMenu(ac, Constants::G_HELP);
|
||||
ac->menu()->setTitle(tr("&Help"));
|
||||
Theme::setHelpMenu(ac->menu());
|
||||
ac->appendGroup(Constants::G_HELP_HELP);
|
||||
ac->appendGroup(Constants::G_HELP_SUPPORT);
|
||||
ac->appendGroup(Constants::G_HELP_ABOUT);
|
||||
|
||||
Reference in New Issue
Block a user