From db3c2b98a67cdcac0ab09c22ec6575ef12b002f0 Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Mon, 12 Sep 2016 09:48:28 +0100 Subject: [PATCH] Don't list raw containments in panels menu Summary: Empty panel is now shipped as a LayoutTempate rendering this code redundant. Test Plan: Still have both default and empty panels listed Reviewers: #plasma Subscribers: plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D2747 --- shell/shellcorona.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/shell/shellcorona.cpp b/shell/shellcorona.cpp index 1ac447a62..65ef01f7b 100644 --- a/shell/shellcorona.cpp +++ b/shell/shellcorona.cpp @@ -1631,14 +1631,7 @@ void ShellCorona::populateAddPanelsMenu() m_addPanelsMenu->clear(); const KPluginInfo emptyInfo; - KPluginInfo::List panelContainmentPlugins = Plasma::PluginLoader::listContainmentsOfType(QStringLiteral("Panel")); QMap > sorted; - foreach (const KPluginInfo &plugin, panelContainmentPlugins) { - if (plugin.property(QStringLiteral("NoDisplay")).toString() == QStringLiteral("true")) { - continue; - } - sorted.insert(plugin.name(), qMakePair(plugin, KPluginMetaData())); - } auto filter = [](const KPluginMetaData &md) -> bool {