From 3c0f3b98148d96f3fad61ff2314e3556f64a480d Mon Sep 17 00:00:00 2001 From: Albert Vaca Date: Tue, 6 Sep 2016 00:37:01 +0200 Subject: [PATCH] Removed unsupported plugins section from KCM --- kcm/kcm.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/kcm/kcm.cpp b/kcm/kcm.cpp index 160a43312..301593f04 100644 --- a/kcm/kcm.cpp +++ b/kcm/kcm.cpp @@ -220,20 +220,16 @@ void KdeConnectKcm::resetDeviceView() const QList pluginInfo = KPluginInfo::fromMetaData(KPluginLoader::findPlugins("kdeconnect/")); QList availablePluginInfo; - QList unsupportedPluginInfo; m_oldSupportedPluginNames = currentDevice->supportedPlugins(); for (auto it = pluginInfo.cbegin(), itEnd = pluginInfo.cend(); it!=itEnd; ++it) { if (m_oldSupportedPluginNames.contains(it->pluginName())) { availablePluginInfo.append(*it); - } else { - unsupportedPluginInfo.append(*it); } } KSharedConfigPtr deviceConfig = KSharedConfig::openConfig(currentDevice->pluginsConfigFile()); kcmUi->pluginSelector->addPlugins(availablePluginInfo, KPluginSelector::ReadConfigFile, i18n("Available plugins"), QString(), deviceConfig); - kcmUi->pluginSelector->addPlugins(unsupportedPluginInfo, KPluginSelector::ReadConfigFile, i18n("Unavailable plugins"), QString(), deviceConfig); connect(kcmUi->pluginSelector, SIGNAL(changed(bool)), this, SLOT(pluginsConfigChanged())); }