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

Fix deletion of buildconfigurations

Hitting the remove button to delete buildconfigurations
resulted in the wrong buildconfiguration getting removed.

Reviewed-by: dt
parent 5ba47738
......@@ -383,24 +383,6 @@ void BuildSettingsWidget::deleteConfiguration(BuildConfiguration *deleteConfigur
m_target->buildConfigurations().size() <= 1)
return;
if (m_target->activeBuildConfiguration() == deleteConfiguration) {
foreach (BuildConfiguration *bc, m_target->buildConfigurations()) {
if (bc != deleteConfiguration) {
m_target->setActiveBuildConfiguration(bc);
break;
}
}
}
if (m_buildConfiguration == deleteConfiguration) {
foreach (BuildConfiguration *bc, m_target->buildConfigurations()) {
if (bc != deleteConfiguration) {
m_buildConfiguration = bc;
break;
}
}
}
m_target->removeBuildConfiguration(deleteConfiguration);
updateBuildSettings();
......
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