aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/targetsettingspanel.cpp
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2016-10-25 17:36:27 +0300
committerOrgad Shaneh <orgads@gmail.com>2016-10-26 08:09:32 +0000
commit44f534397042af60e38f8728d35ad74b258bdb52 (patch)
tree9c2987cf1c0407744b804b206f00ae2715a50908 /src/plugins/projectexplorer/targetsettingspanel.cpp
parent371ab14c6ea64d51b106fb4a3299e0f6c4c60618 (diff)
ProjectExplorer: Use Build by default in Build & Run settings
This preserves the behavior of 4.1. Change-Id: I071ef1c6bf0be88aa7b9787114cbac5292910125 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io> Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/targetsettingspanel.cpp')
-rw-r--r--src/plugins/projectexplorer/targetsettingspanel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/projectexplorer/targetsettingspanel.cpp b/src/plugins/projectexplorer/targetsettingspanel.cpp
index 49ebd5e856..c62d9aa60f 100644
--- a/src/plugins/projectexplorer/targetsettingspanel.cpp
+++ b/src/plugins/projectexplorer/targetsettingspanel.cpp
@@ -280,7 +280,7 @@ class TargetItem : public TypedTreeItem<TreeItem, TargetGroupItem>
Q_DECLARE_TR_FUNCTIONS(TargetSettingsPanelWidget)
public:
- enum { DefaultPage = 1 }; // Run page.
+ enum { DefaultPage = 0 }; // Build page.
TargetItem(Project *project, Id kitId)
: m_project(project), m_kitId(kitId)
@@ -802,7 +802,7 @@ void TargetGroupItemPrivate::handleAddedKit(Kit *kit)
void TargetItem::updateSubItems()
{
if (children().isEmpty() && isEnabled())
- m_currentChild = 1; // We will add children below. Use 'Run' item by default.
+ m_currentChild = DefaultPage; // We will add children below.
removeChildren();
if (isEnabled()) {
appendChild(new BuildOrRunItem(m_project, m_kitId, BuildOrRunItem::BuildPage));