From 47edb14425c42dc56ac6805af7c49db8d4bb0a2c Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Sat, 30 Sep 2023 15:46:51 +0200 Subject: [PATCH] Adapt to KService::property API change --- src/utils/serviceutils.h | 2 +- src/xdgactivationv1.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/serviceutils.h b/src/utils/serviceutils.h index a8f8474ddd..cb172eafb1 100644 --- a/src/utils/serviceutils.h +++ b/src/utils/serviceutils.h @@ -43,7 +43,7 @@ static QStringList fetchProcessServiceField(const QString &executablePath, const return {}; } - const auto fieldValues = servicesFound.first()->property(fieldName).toStringList(); + const auto fieldValues = servicesFound.first()->property(fieldName); if (KWIN_UTILS().isDebugEnabled()) { qCDebug(KWIN_UTILS) << "Interfaces found for" << executablePath << fieldName << ":" << fieldValues; } diff --git a/src/xdgactivationv1.cpp b/src/xdgactivationv1.cpp index 414be2b6cf..c497fbe3df 100644 --- a/src/xdgactivationv1.cpp +++ b/src/xdgactivationv1.cpp @@ -40,7 +40,7 @@ static const QString windowDesktopFileName(Window *window) // Fallback to StartupWMClass for legacy apps const auto resourceName = window->resourceName(); const auto service = KApplicationTrader::query([&resourceName](const KService::Ptr &service) { - return service->property("StartupWMClass").toString().compare(resourceName, Qt::CaseInsensitive) == 0; + return service->property("StartupWMClass").compare(resourceName, Qt::CaseInsensitive) == 0; }); if (!service.isEmpty()) {