diff options
Diffstat (limited to 'src/plugins/projectexplorer/customwizard/customwizardparameters.cpp')
-rw-r--r-- | src/plugins/projectexplorer/customwizard/customwizardparameters.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/plugins/projectexplorer/customwizard/customwizardparameters.cpp b/src/plugins/projectexplorer/customwizard/customwizardparameters.cpp index 37527d49a8..a9a93bf868 100644 --- a/src/plugins/projectexplorer/customwizard/customwizardparameters.cpp +++ b/src/plugins/projectexplorer/customwizard/customwizardparameters.cpp @@ -451,12 +451,8 @@ static ParseState nextClosingState(ParseState in, const QStringRef &name) static inline IWizardFactory::WizardKind kindAttribute(const QXmlStreamReader &r) { const QStringRef value = r.attributes().value(QLatin1String(kindAttributeC)); - if (!value.isEmpty()) { - if (value == QLatin1String("file")) - return IWizardFactory::FileWizard; - if (value == QLatin1String("class")) - return IWizardFactory::ClassWizard; - } + if (value == QLatin1String("file") || value == QLatin1String("class")) + return IWizardFactory::FileWizard; return IWizardFactory::ProjectWizard; } |