Commit 8fe9df26 authored by Finn Brudal's avatar Finn Brudal Committed by Daniel Teske

ProjectExplorer: Fix invisible Run submenu

The Run submenu on the Project context menu was never shown.

Change-Id: I4fd29e3b7974114f094d995ef5d31f8bdbc25596
Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
parent df3d22ef
......@@ -2949,6 +2949,7 @@ void ProjectExplorerPluginPrivate::updateContextMenuActions()
ActionContainer *runMenu = ActionManager::actionContainer(Constants::RUNMENUCONTEXTMENU);
runMenu->menu()->clear();
runMenu->menu()->menuAction()->setVisible(false);
if (dd->m_currentNode && dd->m_currentNode->projectNode()) {
QList<ProjectExplorer::ProjectAction> actions =
......@@ -2963,6 +2964,7 @@ void ProjectExplorerPluginPrivate::updateContextMenuActions()
dd->m_runActionContextMenu->setVisible(true);
dd->m_runActionContextMenu->setData(QVariant::fromValue(runConfigs.first()));
} else if (runConfigs.count() > 1) {
runMenu->menu()->menuAction()->setVisible(true);
foreach (RunConfiguration *rc, runConfigs) {
QAction *act = new QAction(runMenu->menu());
act->setData(QVariant::fromValue(rc));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment