JsonWizard: Remove error reporting when a key was not found

Change-Id: Ic7066aa4ce1a8b2e584c825b5b013b9621c28010
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
Tobias Hunger
2015-05-04 11:37:51 +02:00
parent c3012d0e34
commit 7b8a867011

View File

@@ -447,7 +447,9 @@ void JsonWizardFactory::runWizard(const QString &path, QWidget *parent, const QS
QList<QVariant> JsonWizardFactory::objectOrList(const QVariant &data, QString *errorMessage)
{
QList<QVariant> result;
if (data.type() == QVariant::Map)
if (data.isNull())
*errorMessage = tr("key not found.");
else if (data.type() == QVariant::Map)
result.append(data);
else if (data.type() == QVariant::List)
result = data.toList();