Commit 25e3d888 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

JsonWizard: Keep "options" optional

Do not report an error if "options" are unset.

Change-Id: I53f12624275be2d8af8d38da8dfe6bfa6603b948
Reviewed-by: default avatarAlessandro Portale <>
parent f9a064da
......@@ -626,9 +626,7 @@ bool JsonWizardFactory::initialize(const QVariantMap &data, const QDir &baseDir,
// Options:
const QVariant optionValue = data.value(QLatin1String(OPTIONS_KEY));
const QVariantList optionList = objectOrList(optionValue, errorMessage);
if (optionList.isEmpty())
return false;
const QVariantList optionList = optionValue.isNull() ? QVariantList() : objectOrList(optionValue, errorMessage);
foreach (const QVariant &v, optionList) {
if (v.type() != QVariant::Map) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment