From cf40fdcccfd86c33ebf8e672b5563d3aee3ddbb5 Mon Sep 17 00:00:00 2001 From: dt Date: Wed, 8 Sep 2010 11:13:37 +0200 Subject: [PATCH] Plugin Manager: -Fix -noload to actually not load the plugin --- src/libs/extensionsystem/pluginspec.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/libs/extensionsystem/pluginspec.cpp b/src/libs/extensionsystem/pluginspec.cpp index 3f5da9a9b51..3113893555a 100644 --- a/src/libs/extensionsystem/pluginspec.cpp +++ b/src/libs/extensionsystem/pluginspec.cpp @@ -830,11 +830,12 @@ bool PluginSpecPrivate::resolveDependencies(const QList &specs) void PluginSpecPrivate::disableIndirectlyIfDependencyDisabled() { - disabledIndirectly = false; - if (!enabled) return; + if (disabledIndirectly) + return; + foreach (PluginSpec *dependencySpec, dependencySpecs) { if (dependencySpec->isDisabledIndirectly() || !dependencySpec->isEnabled()) { disabledIndirectly = true;