Verified Commit 06f334d4 authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

Remove unneeded check for service types in JSON metadata


We already have a dedicated install namespace for kget plugins,
consequently the additional check is not needed.
parent 5add194a
......@@ -1148,8 +1148,7 @@ void KGet::loadPlugins()
// TransferFactory plugins
const QVector<KPluginMetaData> offers = KPluginLoader::findPlugins(QStringLiteral("kget"), [](const KPluginMetaData& md) {
return md.serviceTypes().contains(QStringLiteral("KGet/Plugin")) &&
md.value(QStringLiteral("X-KDE-KGet-framework-version")) == QString::number(FrameworkVersion) &&
return md.value(QStringLiteral("X-KDE-KGet-framework-version")) == QString::number(FrameworkVersion) &&
md.value(QStringLiteral("X-KDE-KGet-rank")).toInt() > 0 &&
md.value(QStringLiteral("X-KDE-KGet-plugintype")) == QStringLiteral("TransferFactory");
Markdown is supported
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