From 9c13e92e55bdcb34d49d8ea012c86cbdcd222b61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=80lex=20Fiestas?= Date: Mon, 22 Sep 2014 01:23:47 +0200 Subject: [PATCH] Port KCM to QStandardPaths Both core return the same. --- kcm/kcm.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kcm/kcm.cpp b/kcm/kcm.cpp index d51b20315..1daa0f899 100644 --- a/kcm/kcm.cpp +++ b/kcm/kcm.cpp @@ -33,7 +33,6 @@ #include #include #include -#include #include @@ -155,7 +154,7 @@ void KdeConnectKcm::deviceSelected(const QModelIndex& current) KService::List offers = KServiceTypeTrader::self()->query("KdeConnect/Plugin"); QList scriptinfos = KPluginInfo::fromServices(offers); - QString path = KStandardDirs().resourceDirs("config").first()+"kdeconnect/"; + QString path = QStandardPaths::locate(QStandardPaths::ConfigLocation, "kdeconnect/", QStandardPaths::LocateDirectory); KSharedConfigPtr deviceConfig = KSharedConfig::openConfig(path + currentDevice->id()); kcmUi->pluginSelector->addPlugins(scriptinfos, KPluginSelector::ReadConfigFile, i18n("Plugins"), QString(), deviceConfig);