Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KMailTransport
Commits
a273799f
Commit
a273799f
authored
Jun 16, 2021
by
Laurent Montel
😁
Browse files
Remove code about duplicate plugins
parent
006cf2ae
Pipeline
#66021
passed with stage
in 6 minutes and 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/kmailtransport/plugins/transportpluginmanager.cpp
View file @
a273799f
...
...
@@ -59,7 +59,6 @@ bool TransportPluginManagerPrivate::initializePlugins()
QVectorIterator
<
KPluginMetaData
>
i
(
plugins
);
i
.
toBack
();
QSet
<
QString
>
unique
;
while
(
i
.
hasPrevious
())
{
MailTransportPluginInfo
info
;
const
KPluginMetaData
data
=
i
.
previous
();
...
...
@@ -67,13 +66,8 @@ bool TransportPluginManagerPrivate::initializePlugins()
info
.
metaDataFileNameBaseName
=
QFileInfo
(
data
.
fileName
()).
baseName
();
info
.
metaDataFileName
=
data
.
fileName
();
if
(
pluginVersion
()
==
data
.
version
())
{
// only load plugins once, even if found multiple times!
if
(
unique
.
contains
(
info
.
metaDataFileNameBaseName
))
{
continue
;
}
info
.
plugin
=
nullptr
;
mPluginList
.
push_back
(
info
);
unique
.
insert
(
info
.
metaDataFileNameBaseName
);
}
else
{
qCWarning
(
MAILTRANSPORT_LOG
)
<<
"Plugin "
<<
data
.
name
()
<<
" doesn't have correction plugin version. It will not be loaded."
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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