From a8690099099f6b81a28ce7e620b6e57caee173e8 Mon Sep 17 00:00:00 2001 From: xarkes Date: Sat, 10 Feb 2018 19:11:09 +0100 Subject: [PATCH] Build fix --- src/cutter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cutter.cpp b/src/cutter.cpp index 2e892a76..1efe8dc3 100644 --- a/src/cutter.cpp +++ b/src/cutter.cpp @@ -1056,7 +1056,8 @@ QList CutterCore::getAllStrings() CORE_LOCK(); QList ret; QJsonDocument stringsDoc = cmdj("izzj"); - QJsonArray stringsArray = stringsDoc["strings"].toArray(); + QJsonObject stringsObj = stringsDoc.object(); + QJsonArray stringsArray = stringsObj["strings"].toArray(); for (QJsonValue value : stringsArray) { QJsonObject stringObject = value.toObject();