Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
f0074104
Commit
f0074104
authored
Feb 16, 2011
by
Bill King
Browse files
Pluginmanager: Test before adding plugin to tests list.
parent
8ef42cce
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libs/extensionsystem/optionsparser.cpp
View file @
f0074104
...
...
@@ -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
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment