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
Network
Konqueror
Commits
a8c8fd72
Commit
a8c8fd72
authored
Aug 12, 2022
by
Stefano Crocco
Browse files
Assume that all plugins returned by partsForMimeType are parts
parent
7a8526b0
Pipeline
#221570
passed with stage
in 5 minutes and 34 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
settings/konqhtml/generalopts.cpp
View file @
a8c8fd72
...
...
@@ -216,7 +216,7 @@ void KKonqGeneralOptions::load()
QVector
<
KPluginMetaData
>
allParts
=
KParts
::
PartLoader
::
partsForMimeType
(
QStringLiteral
(
"text/html"
));
QVector
<
KPluginMetaData
>
partOfferList
;
auto
filter
=
[](
const
KPluginMetaData
&
md
){
return
!
md
.
serviceTypes
().
contains
(
QStringLiteral
(
"KParts/ReadWritePart"
))
&&
!
md
.
mimeTypes
().
contains
(
QStringLiteral
(
"text/plain"
));
return
!
md
.
mimeTypes
().
contains
(
QStringLiteral
(
"text/plain"
));
};
std
::
copy_if
(
allParts
.
constBegin
(),
allParts
.
constEnd
(),
std
::
back_inserter
(
partOfferList
),
filter
);
...
...
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