forked from qt-creator/qt-creator
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.
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user