From 973a2e8f22170218d91014a38a59e74ee8e66721 Mon Sep 17 00:00:00 2001 From: Antonis Tsiapaliokas Date: Wed, 28 Aug 2013 12:08:28 +0300 Subject: [PATCH] Remove deprecated ctor --- kcmkwin/kwincompositing/effectconfig.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kcmkwin/kwincompositing/effectconfig.cpp b/kcmkwin/kwincompositing/effectconfig.cpp index 85ce1a496c..7ce873fd20 100644 --- a/kcmkwin/kwincompositing/effectconfig.cpp +++ b/kcmkwin/kwincompositing/effectconfig.cpp @@ -63,7 +63,8 @@ void EffectConfig::openConfig(const QString &effectName) KService::List offers = KServiceTypeTrader::self()->query("KWin/Effect"); for(KService::Ptr service : offers) { - KPluginInfo plugin(service); + const QString effectPluginPath = QStandardPaths::locate(QStandardPaths::GenericDataLocation, "kde5/services/"+ service->entryPath(), QStandardPaths::LocateFile); + KPluginInfo plugin(effectPluginPath); if (plugin.name() == effectName) { QString effectConfig = effectName.toLower().remove(" ") + "_config"; KCModuleProxy *proxy = new KCModuleProxy(effectConfig);