From d21668d86883b3f192db97ff00bfb89429cb5e2e Mon Sep 17 00:00:00 2001 From: dt <qtc-commiter@nokia.com> Date: Tue, 27 Jan 2009 14:53:42 +0100 Subject: [PATCH] Fixes: Run from the sidebar running the wrong project. Task: 242196 Details: Introduced while fixing the run from context menu runs wrong project fix. --- src/plugins/projectexplorer/projectexplorer.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plugins/projectexplorer/projectexplorer.cpp b/src/plugins/projectexplorer/projectexplorer.cpp index a9d4e2fc208..1c013f0222c 100644 --- a/src/plugins/projectexplorer/projectexplorer.cpp +++ b/src/plugins/projectexplorer/projectexplorer.cpp @@ -517,6 +517,7 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er cmd = am->registerAction(m_runAction, Constants::RUN, globalcontext); cmd->setDefaultKeySequence(QKeySequence(tr("Ctrl+R"))); mbuild->addAction(cmd, Constants::G_BUILD_RUN); + modeManager->addAction(cmd, Constants::P_ACTION_RUN, m_runConfigurationMenu); m_runActionContextMenu = new QAction(runIcon, tr("Run"), this); cmd = am->registerAction(m_runActionContextMenu, Constants::RUNCONTEXTMENU, globalcontext); @@ -533,8 +534,6 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er connect(mbuild->menu(), SIGNAL(aboutToShow()), this, SLOT(populateRunConfigurationMenu())); connect(m_runConfigurationMenu, SIGNAL(triggered(QAction *)), this, SLOT(runConfigurationMenuTriggered(QAction *))); - modeManager->addAction(cmd, Constants::P_ACTION_RUN, m_runConfigurationMenu); - // jump to next task m_taskAction = new QAction(tr("Go to Task Window"), this); m_taskAction->setIcon(QIcon(Core::Constants::ICON_NEXT)); -- GitLab