forked from qt-creator/qt-creator
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>
This commit is contained in:
committed by
Orgad Shaneh
parent
371ab14c6e
commit
44f5343970
@@ -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));
|
||||
|
Reference in New Issue
Block a user