forked from qt-creator/qt-creator
QbsProjectManager: Fix one more build key inconsistency
Amends 26e4a2a758.
Fixes: QTCREATORBUG-23841
Change-Id: Ie297f8e2b6a79f6bafa709bf3a0285c9ce6e03ab
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -170,12 +170,6 @@ static bool supportsNodeAction(ProjectAction action, const Node *node)
|
||||
return false;
|
||||
}
|
||||
|
||||
static QString buildKeyValue(const QJsonObject &product)
|
||||
{
|
||||
return product.value("name").toString() + '.'
|
||||
+ product.value("multiplex-configuration-id").toString();
|
||||
}
|
||||
|
||||
QbsBuildSystem::QbsBuildSystem(QbsBuildConfiguration *bc)
|
||||
: BuildSystem(bc->target()),
|
||||
m_session(new QbsSession(this)),
|
||||
@@ -925,7 +919,7 @@ static RawProjectParts generateProjectParts(
|
||||
rpp.setProjectFileLocation(location.value("file-path").toString(),
|
||||
location.value("line").toInt(),
|
||||
location.value("column").toInt());
|
||||
rpp.setBuildSystemTarget(buildKeyValue(prd));
|
||||
rpp.setBuildSystemTarget(QbsProductNode::getBuildKey(prd));
|
||||
rpp.setBuildTargetType(prd.value("is-runnable").toBool()
|
||||
? BuildTargetType::Executable
|
||||
: BuildTargetType::Library);
|
||||
@@ -1088,7 +1082,7 @@ void QbsBuildSystem::updateApplicationTargets()
|
||||
}
|
||||
}
|
||||
BuildTargetInfo bti;
|
||||
bti.buildKey = buildKeyValue(productData);
|
||||
bti.buildKey = QbsProductNode::getBuildKey(productData);
|
||||
bti.targetFilePath = FilePath::fromString(targetFile);
|
||||
bti.projectFilePath = FilePath::fromString(projectFile);
|
||||
bti.isQtcRunnable = isQtcRunnable; // Fixed up below.
|
||||
|
||||
Reference in New Issue
Block a user