From f007410405b337c61ad83ac2401802bc61fb05a6 Mon Sep 17 00:00:00 2001 From: Bill King Date: Wed, 16 Feb 2011 17:09:05 +0100 Subject: [PATCH] Pluginmanager: Test before adding plugin to tests list. --- src/libs/extensionsystem/optionsparser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/extensionsystem/optionsparser.cpp b/src/libs/extensionsystem/optionsparser.cpp index cf5ce782081..08173300f64 100644 --- a/src/libs/extensionsystem/optionsparser.cpp +++ b/src/libs/extensionsystem/optionsparser.cpp @@ -109,7 +109,7 @@ bool OptionsParser::checkForTestOption() if (nextToken(RequiredToken)) { if(m_currentArg == "all") { foreach(PluginSpec *spec, m_pmPrivate->pluginSpecs) { - if (spec) + if (spec && !m_pmPrivate->testSpecs.contains(spec)) m_pmPrivate->testSpecs.append(spec); } } else { @@ -119,7 +119,7 @@ bool OptionsParser::checkForTestOption() *m_errorString = QCoreApplication::translate("PluginManager", "The plugin '%1' does not exist.").arg(m_currentArg); m_hasError = true; - } else { + } else if(!m_pmPrivate->testSpecs.contains(spec)) { m_pmPrivate->testSpecs.append(spec); } }