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