forked from qt-creator/qt-creator
Fix annoying behavior that target selector always switched back to "build"
Reviewed-by: Tobias Hunger Task-number: QTCREATORBUG-1877
This commit is contained in:
@@ -285,3 +285,13 @@ void TargetSettingsPanelWidget::updateTargetAddAndRemoveButtons()
|
||||
m_selector->setAddButtonEnabled(!m_addMenu->actions().isEmpty());
|
||||
m_selector->setRemoveButtonEnabled(m_project->targets().count() > 1);
|
||||
}
|
||||
|
||||
int TargetSettingsPanelWidget::currentSubIndex() const
|
||||
{
|
||||
return m_selector->currentSubIndex();
|
||||
}
|
||||
|
||||
void TargetSettingsPanelWidget::setCurrentSubIndex(int subIndex)
|
||||
{
|
||||
m_selector->setCurrentSubIndex(subIndex);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user