summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Edmundson <[email protected]>2017-01-04 02:12:40 +0000
committerDavid Edmundson <[email protected]>2017-01-04 02:14:58 +0000
commitc43757666aa637b6db5d840cdd2949abddc44614 (patch)
tree403a6e492b3d5833ab7b9ce82c1fd74733784cd6
parent1d362c4ae2e264a80c002ab6718c1b1d9437c20c (diff)
Fix yet another KPluginMetaData::value porting mistake on stringlists
Test Plan: Now get a populated Panel's menu (this doesn't answer why Marco and Kai said it worked for them though?) Reviewers: #plasma Subscribers: plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D3944
-rw-r--r--shell/shellcorona.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/shellcorona.cpp b/shell/shellcorona.cpp
index 7d3830b..923f227 100644
--- a/shell/shellcorona.cpp
+++ b/shell/shellcorona.cpp
@@ -1667,7 +1667,7 @@ void ShellCorona::checkAddPanelAction(const QStringList &sycocaChanges)
auto filter = [](const KPluginMetaData &md) -> bool
{
- return md.value(QStringLiteral("NoDisplay")) != QStringLiteral("true") && md.value(QStringLiteral("X-Plasma-ContainmentCategories")).contains(QStringLiteral("panel"));
+ return md.value(QStringLiteral("NoDisplay")) != QStringLiteral("true") && KPluginMetaData::readStringList(md.rawData(), QStringLiteral("X-Plasma-ContainmentCategories")).contains(QStringLiteral("panel"));
};
QList<KPluginMetaData> templates = KPackage::PackageLoader::self()->findPackages(QStringLiteral("Plasma/LayoutTemplate"), QString(), filter);
@@ -1706,7 +1706,7 @@ void ShellCorona::populateAddPanelsMenu()
auto filter = [](const KPluginMetaData &md) -> bool
{
- return md.value(QStringLiteral("NoDisplay")) != QStringLiteral("true") && md.value(QStringLiteral("X-Plasma-ContainmentCategories")).contains(QStringLiteral("panel"));
+ return md.value(QStringLiteral("NoDisplay")) != QStringLiteral("true") && KPluginMetaData::readStringList(md.rawData(), QStringLiteral("X-Plasma-ContainmentCategories")).contains(QStringLiteral("panel"));
};
const QList<KPluginMetaData> templates = KPackage::PackageLoader::self()->findPackages(QStringLiteral("Plasma/LayoutTemplate"), QString(), filter);
for (auto tpl : templates) {