forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.15'
Change-Id: I0afcf51d354ffd73a8f2956a7f78b1e4f032677b
This commit is contained in:
@@ -534,6 +534,14 @@ void CMakeBuildStep::recreateBuildTargetsModel()
|
||||
|
||||
addItem(QString(), true);
|
||||
|
||||
// Remove the targets that do not exist in the build system
|
||||
// This can result when selected targets get renamed
|
||||
if (!targetList.empty()) {
|
||||
Utils::erase(m_buildTargets, [targetList](const QString &bt) { return !targetList.contains(bt); });
|
||||
if (m_buildTargets.empty())
|
||||
m_buildTargets.push_back(m_allTarget);
|
||||
}
|
||||
|
||||
for (const QString &buildTarget : qAsConst(targetList))
|
||||
addItem(buildTarget, specialTargets(usesAllCapsTargets).contains(buildTarget));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user