save downloaded xmls (#4736)

This commit is contained in:
ebbit1q 2023-04-02 04:19:57 +02:00 committed by GitHub
parent 304ed3cd60
commit f5f8acf1fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 63 additions and 22 deletions

View file

@ -80,12 +80,11 @@ QVariant Json::parse(const QString &json, bool &success)
// Return an empty QVariant if the JSON data is either null or empty
if (!json.isNull() || !json.isEmpty()) {
QString data = json;
// We'll start from index 0
int index = 0;
// Parse the first value
QVariant value = Json::parseValue(data, index, success);
QVariant value = Json::parseValue(json, index, success);
// Return the parsed value
return value;