forked from qt-creator/qt-creator
About Plugins: Disable plugins that are not available on platform
Change-Id: I8e64b363a74823001f5ca65d9174e2a403bc3dca Task-number: QTCREATORBUG-10570 Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
@@ -265,6 +265,11 @@ QRegExp PluginSpec::platformSpecification() const
|
||||
return d->platformSpecification;
|
||||
}
|
||||
|
||||
bool PluginSpec::isAvailableForHostPlatform() const
|
||||
{
|
||||
return d->platformSpecification.isEmpty() || d->platformSpecification.exactMatch(PluginManager::platformName());
|
||||
}
|
||||
|
||||
/*!
|
||||
Returns whether the plugin has its experimental flag set.
|
||||
*/
|
||||
@@ -307,7 +312,7 @@ bool PluginSpec::isEffectivelyEnabled() const
|
||||
|| d->forceDisabled) {
|
||||
return false;
|
||||
}
|
||||
return d->platformSpecification.isEmpty() || d->platformSpecification.exactMatch(PluginManager::platformName());
|
||||
return isAvailableForHostPlatform();
|
||||
}
|
||||
|
||||
/*!
|
||||
|
||||
Reference in New Issue
Block a user