Commit b74e80dc authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Make sure our active target is not changed accidentally

 * Adding a project to the project mode used to reset
   the active target. Make sure to restore the original one.
parent 5398651c
......@@ -114,6 +114,9 @@ void TargetSettingsPanelWidget::setupUi()
connect(m_selector, SIGNAL(currentChanged(int,int)),
this, SLOT(currentTargetChanged(int,int)));
// Save active target now as it will change when targets are added:
Target *activeTarget = m_project->activeTarget();
foreach (Target *t, m_project->targets())
......@@ -122,11 +125,10 @@ void TargetSettingsPanelWidget::setupUi()
connect(m_selector, SIGNAL(removeButtonClicked()),
this, SLOT(removeTarget()));
if (m_project->activeTarget()) {
// Restore target originally set:
void TargetSettingsPanelWidget::currentTargetChanged(int targetIndex, int subIndex)
Supports Markdown
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