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);