From 9316ff8e9241055c4f39400dee50e453ada7b608 Mon Sep 17 00:00:00 2001 From: xarkes Date: Fri, 24 Aug 2018 18:06:07 +0200 Subject: [PATCH] Fixed #643 empty strings panel (#655) --- src/Cutter.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Cutter.cpp b/src/Cutter.cpp index 9265f4c1..631bbf7b 100644 --- a/src/Cutter.cpp +++ b/src/Cutter.cpp @@ -1571,8 +1571,7 @@ QList CutterCore::parseStringsJson(const QJsonDocument &doc) { QList ret; - QJsonObject stringsObj = doc.object(); - QJsonArray stringsArray = stringsObj["strings"].toArray(); + QJsonArray stringsArray = doc.array(); for (QJsonValue value : stringsArray) { QJsonObject stringObject = value.toObject();