diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-04-06 23:45:24 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-04-07 00:20:02 +0200 |
commit | dddc5cedf380d1321b94b0bc7d244d23289e6d3c (patch) | |
tree | 859361b57ac3fc5a07733ff63df04147c240666f | |
parent | d864c95e2b5e172116370694d59a615a97cf390f (diff) | |
download | MultiMC-dddc5cedf380d1321b94b0bc7d244d23289e6d3c.tar MultiMC-dddc5cedf380d1321b94b0bc7d244d23289e6d3c.tar.gz MultiMC-dddc5cedf380d1321b94b0bc7d244d23289e6d3c.tar.lz MultiMC-dddc5cedf380d1321b94b0bc7d244d23289e6d3c.tar.xz MultiMC-dddc5cedf380d1321b94b0bc7d244d23289e6d3c.zip |
NOISSUE make a call to ensureBoolean in the JSON format code less ambiguous
-rw-r--r-- | api/logic/meta/JsonFormat.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/logic/meta/JsonFormat.cpp b/api/logic/meta/JsonFormat.cpp index 1638105a..fda1cf97 100644 --- a/api/logic/meta/JsonFormat.cpp +++ b/api/logic/meta/JsonFormat.cpp @@ -52,7 +52,7 @@ static VersionPtr parseCommonVersion(const QString &uid, const QJsonObject &obj) version->setTime(QDateTime::fromString(requireString(obj, "releaseTime"), Qt::ISODate).toMSecsSinceEpoch() / 1000); version->setType(ensureString(obj, "type", QString())); version->setParentUid(ensureString(obj, "parentUid", QString())); - version->setRecommended(ensureBoolean(obj, "recommended", false)); + version->setRecommended(ensureBoolean(obj, QString("recommended"), false)); if(obj.contains("requires")) { QHash<QString, QString> requires; |