From 01699e9f256c23bfc5bef1691c5dd029ab8241f7 Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Tue, 20 Jan 2015 17:49:31 +0100 Subject: [PATCH] JsonWizard: Allow for wizards without generators The Checkout wizard will not feature any generator. Change-Id: I05900309a5ea8a638493ab0fa5499759bcdc181f Reviewed-by: Orgad Shaneh --- src/plugins/projectexplorer/jsonwizard/jsonwizardfactory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/projectexplorer/jsonwizard/jsonwizardfactory.cpp b/src/plugins/projectexplorer/jsonwizard/jsonwizardfactory.cpp index c8d8acca679..25625d63603 100644 --- a/src/plugins/projectexplorer/jsonwizard/jsonwizardfactory.cpp +++ b/src/plugins/projectexplorer/jsonwizard/jsonwizardfactory.cpp @@ -557,7 +557,7 @@ bool JsonWizardFactory::initialize(const QVariantMap &data, const QDir &baseDir, // Generator: QVariantList list = objectOrList(data.value(QLatin1String(GENERATOR_KEY)), errorMessage); - if (list.isEmpty()) { + if (!errorMessage->isEmpty()) { *errorMessage = tr("When parsing \"generators\": %1").arg(*errorMessage); return false; }