Commit 8b81c2d0481002c86636a210508555c8ca25479e

Authored by Josh Klontz
1 parent ef613c58

compile fix

openbr/plugins/gallery/json.cpp
@@ -45,7 +45,7 @@ class jsonGallery : public FileGallery @@ -45,7 +45,7 @@ class jsonGallery : public FileGallery
45 QJsonParseError jsonParseError; 45 QJsonParseError jsonParseError;
46 const QJsonDocument jsonDocument = QJsonDocument::fromJson(f.readAll(), &jsonParseError); 46 const QJsonDocument jsonDocument = QJsonDocument::fromJson(f.readAll(), &jsonParseError);
47 if (jsonParseError.error != QJsonParseError::NoError) 47 if (jsonParseError.error != QJsonParseError::NoError)
48 - qFatal("%s", qPrintable(jsonParseError.error)); 48 + qFatal("%s", qPrintable(jsonParseError.errorString()));
49 49
50 if (!jsonDocument.isArray()) 50 if (!jsonDocument.isArray())
51 qFatal("Expected JSON document to be an array!"); 51 qFatal("Expected JSON document to be an array!");