summaryrefslogtreecommitdiff
path: root/launcher/ApplicationMessage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'launcher/ApplicationMessage.cpp')
-rw-r--r--launcher/ApplicationMessage.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/launcher/ApplicationMessage.cpp b/launcher/ApplicationMessage.cpp
index e22bf13c81..a01324dfc7 100644
--- a/launcher/ApplicationMessage.cpp
+++ b/launcher/ApplicationMessage.cpp
@@ -4,7 +4,7 @@
#include <QJsonObject>
void ApplicationMessage::parse(const QByteArray & input) {
- auto doc = QJsonDocument::fromBinaryData(input);
+ auto doc = QJsonDocument::fromJson(input);
auto root = doc.object();
command = root.value("command").toString();
@@ -27,5 +27,5 @@ QByteArray ApplicationMessage::serialize() {
QJsonDocument out;
out.setObject(root);
- return out.toBinaryData();
+ return out.toJson(QJsonDocument::Compact);
}