From e24ad7ac55ddd22734b035916bb616069e741df0 Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Fri, 25 Nov 2022 15:21:58 +0100 Subject: [PATCH] JSON wizards: Print parsing issues only with -customwizard-verbose Some wizards will miss required components when corresponding plugins are disabled. That is fine, and not an error per se. When actually developing a wizard, these kind of errors should of course be posted, but that is what -customwizard-verbose is for. Fixes: QTCREATORBUG-28502 Change-Id: I3647d37ef7ca4dace7592c5443bdd13720290016 Reviewed-by: Christian Stenger --- src/plugins/projectexplorer/jsonwizard/jsonwizardfactory.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/projectexplorer/jsonwizard/jsonwizardfactory.cpp b/src/plugins/projectexplorer/jsonwizard/jsonwizardfactory.cpp index dfcc80d6c59..2a471734906 100644 --- a/src/plugins/projectexplorer/jsonwizard/jsonwizardfactory.cpp +++ b/src/plugins/projectexplorer/jsonwizard/jsonwizardfactory.cpp @@ -480,7 +480,8 @@ JsonWizardFactory *JsonWizardFactory::createWizardFactory(const QVariantMap &dat if (!factory->initialize(data, baseDir, errorMessage)) { delete factory; factory = nullptr; - Core::MessageManager::writeDisrupting(*errorMessage); + if (verbose()) + Core::MessageManager::writeDisrupting(*errorMessage); } return factory; }