forked from qt-creator/qt-creator
Make only one GenericMakeStep per BuildConfiguration immutable
Reviewed-by: thorbjorn
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user