ProjectManager: Use the right constant when creating a menu

Change-Id: Icb7b17929e269469ccbcb24c2ab50fc67c167be3
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Tobias Hunger
2017-09-04 17:10:02 +02:00
parent 43c04ac80b
commit bae73e7246

View File

@@ -697,7 +697,7 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er
folderOpenLocationCtxMenu->setOnAllDisabledBehavior(ActionContainer::Show); folderOpenLocationCtxMenu->setOnAllDisabledBehavior(ActionContainer::Show);
ActionContainer *subProjectOpenLocationCtxMenu = ActionContainer *subProjectOpenLocationCtxMenu =
ActionManager::createMenu(Constants::PROJECT_OPEN_LOCATIONS_CONTEXT_MENU); ActionManager::createMenu(Constants::SUBPROJECT_OPEN_LOCATIONS_CONTEXT_MENU);
subProjectOpenLocationCtxMenu->menu()->setTitle(tr("Open...")); subProjectOpenLocationCtxMenu->menu()->setTitle(tr("Open..."));
subProjectOpenLocationCtxMenu->setOnAllDisabledBehavior(ActionContainer::Show); subProjectOpenLocationCtxMenu->setOnAllDisabledBehavior(ActionContainer::Show);