forked from qt-creator/qt-creator
ProjectExplorer: Streamline build step creation via menu
Change-Id: I801031d5a3d3ad8d8e5cf61766ca4e9791d7a96c Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -167,7 +167,9 @@ void BuildStepList::insertStep(int position, BuildStep *step)
|
||||
void BuildStepList::insertStep(int position, Utils::Id stepId)
|
||||
{
|
||||
for (BuildStepFactory *factory : BuildStepFactory::allBuildStepFactories()) {
|
||||
if (BuildStep *step = factory->create(this, stepId)) {
|
||||
if (factory->stepId() == stepId) {
|
||||
BuildStep *step = factory->create(this);
|
||||
QTC_ASSERT(step, break);
|
||||
insertStep(position, step);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user