Commit 38326a28 authored by dt's avatar dt
Browse files

Modebar Build: Build project with dependencies instead of seesion

I do not rememeber why it was building the session and not the active
project. Changing it now for 2.2 is too late though.
parent 61ced35c
......@@ -629,8 +629,6 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er
cmd->setDefaultKeySequence(QKeySequence(tr("Ctrl+Shift+B")));
mbuild->addAction(cmd, Constants::G_BUILD_SESSION);
msessionContextMenu->addAction(cmd, Constants::G_SESSION_BUILD);
// Add to mode bar
modeManager->addAction(cmd->action(), Constants::P_ACTION_BUILDSESSION);
// rebuild session action
QIcon rebuildIcon(Constants::ICON_REBUILD);
......@@ -663,6 +661,9 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er
cmd->setDefaultKeySequence(QKeySequence(tr("Ctrl+B")));
mbuild->addAction(cmd, Constants::G_BUILD_PROJECT);
// Add to mode bar
modeManager->addAction(cmd->action(), Constants::P_ACTION_BUILDPROJECT);
// rebuild action
d->m_rebuildAction = new Utils::ParameterAction(tr("Rebuild Project"), tr("Rebuild Project \"%1\""),
Utils::ParameterAction::AlwaysEnabled, this);
......
......@@ -100,7 +100,7 @@ const char * const SELECTTARGET = "ProjectExplorer.SelectTarget";
// action priorities
const int P_ACTION_RUN = 100;
const int P_ACTION_BUILDSESSION = 80;
const int P_ACTION_BUILDPROJECT = 80;
// context
const char * const C_PROJECTEXPLORER = "Project Explorer";
......
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