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

Make only one GenericMakeStep per BuildConfiguration immutable

Reviewed-by: thorbjorn
parent e0a12e9e
......@@ -177,7 +177,14 @@ ProjectExplorer::BuildStepConfigWidget *GenericMakeStep::createConfigWidget()
bool GenericMakeStep::immutable() const
{
return true;
// Only make one GenericMakeStep immutable:
QList<BuildStep *> steps = buildConfiguration()->buildSteps();
int makestepCount = 0;
foreach (const BuildStep *bs, steps) {
if (qobject_cast<const GenericMakeStep *>(bs))
++makestepCount;
}
return makestepCount <= 1;
}
bool GenericMakeStep::buildsTarget(const QString &target) const
......
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