Fixed #643 empty strings panel (#655)

This commit is contained in:
xarkes 2018-08-24 18:06:07 +02:00 committed by GitHub
parent c2fb4ad2fe
commit 9316ff8e92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1571,8 +1571,7 @@ QList<StringDescription> CutterCore::parseStringsJson(const QJsonDocument &doc)
{ {
QList<StringDescription> ret; QList<StringDescription> ret;
QJsonObject stringsObj = doc.object(); QJsonArray stringsArray = doc.array();
QJsonArray stringsArray = stringsObj["strings"].toArray();
for (QJsonValue value : stringsArray) { for (QJsonValue value : stringsArray) {
QJsonObject stringObject = value.toObject(); QJsonObject stringObject = value.toObject();