diff options
author | Alessandro Portale <alessandro.portale@qt.io> | 2021-10-15 20:48:29 +0200 |
---|---|---|
committer | Alessandro Portale <alessandro.portale@qt.io> | 2021-10-18 16:22:36 +0000 |
commit | 719cdfd426c5f780dbb83e2ba0ca19858bc2ced7 (patch) | |
tree | 4082a397b907e07fa01bb178cb68bd5d0039d9f4 | |
parent | 4544d891aa32255ec02385609c133c9685c9c72f (diff) | |
download | qt-creator-719cdfd426c5f780dbb83e2ba0ca19858bc2ced7.tar.gz |
ProjectExplorer: Don't print out warnings when wizard.json parsing fails
If plugins are disabled (e.g. Designer), some form page types (e.g.
"Form") might be missing. Therefore the parsing of some wizard.json
files will fail, which is expected.
A recent patch added warning output for this case:
Failed to create wizard: "wizard.json"
Let's remove that, because that is the job of Qt Creator's Option:
-customwizard-verbose
Amends: 32799b3a7bd0cb8cd3da99c869649dab3be83634
Change-Id: Idda037c2e48ef290ff95754393572ec4309347b2
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
Reviewed-by: Samuel Ghinet <samuel.ghinet@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
-rw-r--r-- | src/plugins/projectexplorer/jsonwizard/jsonwizardfactory.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/plugins/projectexplorer/jsonwizard/jsonwizardfactory.cpp b/src/plugins/projectexplorer/jsonwizard/jsonwizardfactory.cpp index 431cbbf775..1c8c710743 100644 --- a/src/plugins/projectexplorer/jsonwizard/jsonwizardfactory.cpp +++ b/src/plugins/projectexplorer/jsonwizard/jsonwizardfactory.cpp @@ -400,14 +400,12 @@ QList<Core::IWizardFactory *> JsonWizardFactory::createWizardFactories() .arg(currentFile.fileName()) .arg(line).arg(column) .arg(error.errorString())); - qWarning() << "Failed to parse wizard: " << currentFile.fileName(); continue; } if (!json.isObject()) { verboseLog.append(tr("* Did not find a JSON object in \"%1\".\n") .arg(currentFile.fileName())); - qWarning() << "Failed to parse wizard: " << currentFile.fileName(); continue; } @@ -425,7 +423,6 @@ QList<Core::IWizardFactory *> JsonWizardFactory::createWizardFactories() JsonWizardFactory *factory = createWizardFactory(data, currentDir, &errorMessage); if (!factory) { verboseLog.append(tr("* Failed to create: %1\n").arg(errorMessage)); - qWarning() << "Failed to create wizard: " << currentFile.fileName(); continue; } |