Build fix

This commit is contained in:
xarkes 2018-02-10 19:11:09 +01:00
parent 0fb1086aca
commit a869009909

View File

@ -1056,7 +1056,8 @@ QList<StringDescription> CutterCore::getAllStrings()
CORE_LOCK(); CORE_LOCK();
QList<StringDescription> ret; QList<StringDescription> ret;
QJsonDocument stringsDoc = cmdj("izzj"); QJsonDocument stringsDoc = cmdj("izzj");
QJsonArray stringsArray = stringsDoc["strings"].toArray(); QJsonObject stringsObj = stringsDoc.object();
QJsonArray stringsArray = stringsObj["strings"].toArray();
for (QJsonValue value : stringsArray) for (QJsonValue value : stringsArray)
{ {
QJsonObject stringObject = value.toObject(); QJsonObject stringObject = value.toObject();