From 1f094b98039b4f8c79bc402246babd4f821116db Mon Sep 17 00:00:00 2001 From: iTrooz Date: Sun, 17 Nov 2024 19:02:08 +0100 Subject: [PATCH] avoid translating back to stf string without reason --- launcher/ui/pages/instance/McClient.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/launcher/ui/pages/instance/McClient.hpp b/launcher/ui/pages/instance/McClient.hpp index f171ae674..1dc88cc30 100644 --- a/launcher/ui/pages/instance/McClient.hpp +++ b/launcher/ui/pages/instance/McClient.hpp @@ -91,9 +91,9 @@ public: } Q_UNUSED(readVarInt(resp)); // json length - std::string json = resp.toStdString(); - QJsonDocument doc = QJsonDocument::fromJson(QByteArray::fromStdString(json)); + // 'resp' should now be the JSON string + QJsonDocument doc = QJsonDocument::fromJson(resp); return doc.object(); }