aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/extensionsystem/pluginspec.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@digia.com>2014-07-03 13:47:03 +0200
committerEike Ziller <eike.ziller@digia.com>2014-07-03 14:03:45 +0200
commitdfb4f8aaf647efaca69dd4ae75cdd437d5fb4555 (patch)
treebdb2f2226b923e628ed2dcf670540f8bb26e29b1 /src/libs/extensionsystem/pluginspec.cpp
parentdbbddd9fde6bf2235ab28f71895134c28aeb7406 (diff)
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>
Diffstat (limited to 'src/libs/extensionsystem/pluginspec.cpp')
-rw-r--r--src/libs/extensionsystem/pluginspec.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/libs/extensionsystem/pluginspec.cpp b/src/libs/extensionsystem/pluginspec.cpp
index 3d259dea77..aba11235c1 100644
--- a/src/libs/extensionsystem/pluginspec.cpp
+++ b/src/libs/extensionsystem/pluginspec.cpp
@@ -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();
}
/*!