diff --git a/src/kcmkwin/common/effectsmodel.cpp b/src/kcmkwin/common/effectsmodel.cpp index 9fe9eb4fdf..e0f36ceee2 100644 --- a/src/kcmkwin/common/effectsmodel.cpp +++ b/src/kcmkwin/common/effectsmodel.cpp @@ -619,14 +619,7 @@ static KCModule *loadBinaryConfig(const QString &configModule, QObject *parent) static KCModule *findScriptedConfig(const QString &pluginId, QObject *parent) { - const QVector offers = KPluginLoader::findPluginsById(QStringLiteral("kwin/effects/configs/"), QStringLiteral("kcm_kwin4_genericscripted")); - - if (offers.isEmpty()) { - return nullptr; - } - - const KPluginMetaData &generic = offers.first(); - KPluginLoader loader(generic.fileName()); + KPluginLoader loader(QStringLiteral("kwin/effects/configs/kcm_kwin4_genericscripted")); KPluginFactory *factory = loader.factory(); if (!factory) { return nullptr;