From ac78659229e9a3c4a181d478a6d3fda16ea99312 Mon Sep 17 00:00:00 2001 From: Derek Christ Date: Mon, 23 May 2022 16:37:34 +0200 Subject: [PATCH] Fix a bug in TA that caused boolean values not to be presented in the config tab --- DRAMSys/traceAnalyzer/businessObjects/configmodels.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/DRAMSys/traceAnalyzer/businessObjects/configmodels.cpp b/DRAMSys/traceAnalyzer/businessObjects/configmodels.cpp index 38fef880..bcfbdf73 100644 --- a/DRAMSys/traceAnalyzer/businessObjects/configmodels.cpp +++ b/DRAMSys/traceAnalyzer/businessObjects/configmodels.cpp @@ -69,6 +69,10 @@ void McConfigModel::parseJson(const QString &jsonString) { entries.push_back({key, currentValue.toString()}); } + else if (currentValue.isBool()) + { + entries.push_back({key, currentValue.toBool() ? "True" : "False"}); + } } } @@ -183,6 +187,10 @@ void MemSpecModel::parseJson(const QString &jsonString) { value = currentValue.toString(); } + else if (currentValue.isBool()) + { + value = currentValue.toBool() ? "True" : "False"; + } std::unique_ptr node = std::unique_ptr(new Node({key, value}, parentNode.get())); addNodes(obj[key].toObject(), node);