Commit a8c8fd72 authored by Stefano Crocco's avatar 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
......@@ -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);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment