forked from qt-creator/qt-creator
CMakePM: Fix presets condition with a const value
Fixes: QTCREATORBUG-29077 Change-Id: If1ebaa22c07eaa39fb8d4f24c33f26249f17d793 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -82,7 +82,7 @@ std::optional<PresetsDetails::Condition> parseCondition(const QJsonValue &jsonVa
|
|||||||
|
|
||||||
if (type == "const") {
|
if (type == "const") {
|
||||||
condition->type = type;
|
condition->type = type;
|
||||||
condition->constValue = object.value("const").toBool();
|
condition->constValue = object.value("value").toBool();
|
||||||
return condition;
|
return condition;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user