Commit 44f53439 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

ProjectExplorer: Use Build by default in Build & Run settings



This preserves the behavior of 4.1.

Change-Id: I071ef1c6bf0be88aa7b9787114cbac5292910125
Reviewed-by: Tobias Hunger's avatarTobias Hunger <tobias.hunger@qt.io>
Reviewed-by: default avatarhjk <hjk@qt.io>
parent 371ab14c
......@@ -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));
......
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