From 9a5d34cf6c7b959c0035c1bbc565307876ad4852 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Fri, 6 May 2022 16:52:01 +0000 Subject: [PATCH] default value as false this should also fix compilation on Qt6 --- src/kcmkwin/kwinscreenedges/main.cpp | 2 +- src/kcmkwin/kwinscreenedges/touch.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kcmkwin/kwinscreenedges/main.cpp b/src/kcmkwin/kwinscreenedges/main.cpp index 2b2662dec1..9b44d48abc 100644 --- a/src/kcmkwin/kwinscreenedges/main.cpp +++ b/src/kcmkwin/kwinscreenedges/main.cpp @@ -161,7 +161,7 @@ void KWinScreenEdgesConfig::monitorInit() const auto scripts = KPackage::PackageLoader::self()->listPackages(QStringLiteral("KWin/Script"), scriptFolder); for (const KPluginMetaData &script : scripts) { - if (script.value(QStringLiteral("X-KWin-Border-Activate")) != true) { + if (script.value(QStringLiteral("X-KWin-Border-Activate"), false) != true) { continue; } diff --git a/src/kcmkwin/kwinscreenedges/touch.cpp b/src/kcmkwin/kwinscreenedges/touch.cpp index 2eb56668e4..4967353264 100644 --- a/src/kcmkwin/kwinscreenedges/touch.cpp +++ b/src/kcmkwin/kwinscreenedges/touch.cpp @@ -158,7 +158,7 @@ void KWinScreenEdgesConfig::monitorInit() const auto scripts = KPackage::PackageLoader::self()->listPackages(QStringLiteral("KWin/Script"), scriptFolder); for (const KPluginMetaData &script : scripts) { - if (script.value(QStringLiteral("X-KWin-Border-Activate")) != true) { + if (script.value(QStringLiteral("X-KWin-Border-Activate"), false) != true) { continue; }