forked from qt-creator/qt-creator
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user