diff options
author | Cristian Adam <cristian.adam@qt.io> | 2023-04-25 14:52:03 +0200 |
---|---|---|
committer | Cristian Adam <cristian.adam@qt.io> | 2023-04-27 09:50:24 +0000 |
commit | 3aec6b776c163be922ebd22f6e07671962c118d8 (patch) | |
tree | 9eb681bdd89a03f25e130d10a4d7b083c3a02122 | |
parent | 7c1f2ea16d4b9050b3c15bf1ea2221daa0815902 (diff) | |
download | qt-creator-3aec6b776c163be922ebd22f6e07671962c118d8.tar.gz |
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>
-rw-r--r-- | src/plugins/cmakeprojectmanager/presetsparser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cmakeprojectmanager/presetsparser.cpp b/src/plugins/cmakeprojectmanager/presetsparser.cpp index ad4ab07fcb..5ebd17fd63 100644 --- a/src/plugins/cmakeprojectmanager/presetsparser.cpp +++ b/src/plugins/cmakeprojectmanager/presetsparser.cpp @@ -82,7 +82,7 @@ std::optional<PresetsDetails::Condition> parseCondition(const QJsonValue &jsonVa if (type == "const") { condition->type = type; - condition->constValue = object.value("const").toBool(); + condition->constValue = object.value("value").toBool(); return condition; } |