Make license check output more helpful.

Change-Id: Ia17b5ef5661cd7bd17efbbf0f1985860c220111e
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
Christian Kandeler
2015-07-16 14:24:28 +02:00
parent 378b057a9f
commit 0fac5deb59

View File

@@ -31,8 +31,12 @@ inline bool enterpriseFeaturesAvailable()
= ExtensionSystem::PluginManager::getObject<LicenseChecker::LicenseCheckerPlugin>();
if (licenseChecker && licenseChecker->hasValidLicense()) {
if (licenseChecker->enterpriseFeatures())
if (licenseChecker->enterpriseFeatures()) {
return true;
} else {
qWarning() << "License does not cover enterprise features, "
"disabling Clang Static Analyzer";
}
} else {
qWarning() << "Invalid license, disabling Clang Static Analyzer";
}