forked from qt-creator/qt-creator
ProjectExplorer: Fix use of build step list preamble messages
The step list names are computed separately anyway, having an extra preamble consisting of concatenated build list names on one line looks unnecessary. Change-Id: If754c6363042927210dfd09c23f2f494081f8c47 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -528,19 +528,12 @@ void QmakeProjectManagerPluginPrivate::handleSubDirContextMenu(Action action, bo
|
||||
if (isFileBuild)
|
||||
bc->setFileNodeBuild(buildableFile);
|
||||
if (ProjectExplorerPlugin::saveModifiedFiles()) {
|
||||
const Core::Id buildStep = ProjectExplorer::Constants::BUILDSTEPS_BUILD;
|
||||
const Core::Id cleanStep = ProjectExplorer::Constants::BUILDSTEPS_CLEAN;
|
||||
if (action == BUILD) {
|
||||
if (action == BUILD)
|
||||
BuildManager::buildList(bc->buildSteps());
|
||||
} else if (action == CLEAN) {
|
||||
else if (action == CLEAN)
|
||||
BuildManager::buildList(bc->cleanSteps());
|
||||
} else if (action == REBUILD) {
|
||||
QStringList names;
|
||||
names << ProjectExplorerPlugin::displayNameForStepId(cleanStep)
|
||||
<< ProjectExplorerPlugin::displayNameForStepId(buildStep);
|
||||
|
||||
BuildManager::buildLists({bc->cleanSteps(), bc->buildSteps()}, names);
|
||||
}
|
||||
else if (action == REBUILD)
|
||||
BuildManager::buildLists({bc->cleanSteps(), bc->buildSteps()});
|
||||
}
|
||||
|
||||
bc->setSubNodeBuild(nullptr);
|
||||
|
||||
Reference in New Issue
Block a user