Travis fix

This commit is contained in:
xarkes 2018-02-10 19:03:16 +01:00
parent bc8b890557
commit bc22302d7d

View File

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