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 <christian.stenger@qt.io>
This commit is contained in:
Eike Ziller
2022-11-25 15:21:58 +01:00
parent c210ffb2d6
commit e24ad7ac55

View File

@@ -480,7 +480,8 @@ JsonWizardFactory *JsonWizardFactory::createWizardFactory(const QVariantMap &dat
if (!factory->initialize(data, baseDir, errorMessage)) { if (!factory->initialize(data, baseDir, errorMessage)) {
delete factory; delete factory;
factory = nullptr; factory = nullptr;
Core::MessageManager::writeDisrupting(*errorMessage); if (verbose())
Core::MessageManager::writeDisrupting(*errorMessage);
} }
return factory; return factory;
} }