summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Uwe Broulik <[email protected]>2017-01-04 16:41:34 +0100
committerKai Uwe Broulik <[email protected]>2017-01-04 16:41:34 +0100
commit52b1644c8a035097e9bda2e4a8bc89f88b3ac671 (patch)
tree01bc4b96dc643bb4d84fbec1a8c0a16797ca4c6c
parent04854c155df3f6e6dd89641aa9b92e60d1084994 (diff)
[Windowed Widgets Runner] Fix check for whether applet is standalone-capable
Fixes yet another KPluginMetadata regression. Differential Revision: https://phabricator.kde.org/D3959
-rw-r--r--runners/windowedwidgets/windowedwidgetsrunner.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/runners/windowedwidgets/windowedwidgetsrunner.cpp b/runners/windowedwidgets/windowedwidgetsrunner.cpp
index 1449365..fc97358 100644
--- a/runners/windowedwidgets/windowedwidgetsrunner.cpp
+++ b/runners/windowedwidgets/windowedwidgetsrunner.cpp
@@ -72,8 +72,7 @@ void WindowedWidgetsRunner::match(Plasma::RunnerContext &context)
term.startsWith(i18nc("Note this is a KRunner keyword", "mobile applications"))) &&
!md.rawData().value(QStringLiteral("NoDisplay")).toBool()) {
- QVariant val = md.value(QStringLiteral("X-Plasma-StandAloneApp"));
- if (!val.isValid() || !val.toBool()) {
+ if (!md.rawData().value(QStringLiteral("X-Plasma-StandAloneApp")).toBool()) {
continue;
}