forked from qt-creator/qt-creator
Make license check output more helpful.
Change-Id: Ia17b5ef5661cd7bd17efbbf0f1985860c220111e Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
@@ -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";
|
||||
}
|
||||
|
Reference in New Issue
Block a user