Commit cb5215b0 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Remove dead code

The active summary plugins are saved in the ActiveSummaries key

The config key used by isPluginEnabled is never set so it will always be true, making this code dead
parent b603a9dd
......@@ -117,13 +117,6 @@ void KCMKontactSummary::load()
KPluginInfo::List pluginList = KPluginInfo::fromMetaData(pluginMetaDatas);
for (auto plugin : std::as_const(pluginList)) {
plugin.setConfig(KConfigGroup(&config, "Plugins"));
if (!plugin.isPluginEnabled()) {
QVariant var ="X-KDE-KontactPluginHasSummary"));
if (var.isValid() && var.toBool() == true) {
auto item = new PluginItem(plugin, mPluginView);
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