Skip to content

Commit

Permalink
fix: non array type value is wrong on parse josn file
Browse files Browse the repository at this point in the history
in DSettingsOption::parseJson
QVariant(QJsonValue) => QJsonValue::toVariant()

Change-Id: I41187c74e4bbb268b135adb81dae2c508cb731d4
  • Loading branch information
zccrs committed May 25, 2018
1 parent 996eb98 commit 9f13866
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/settings/dsettingsoption.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ void DSettingsOptionPrivate::parseJson(const QString &prefixKey, const QJsonObje
}
datas.insert(key, stringlist);
} else {
datas.insert(key, value);
datas.insert(key, value.toVariant());
}
}
}
Expand Down

0 comments on commit 9f13866

Please sign in to comment.