Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Vogtinator:plasma5.24
plasma5-workspace
0001-Add-version-guard-for-KPluginMetaData-from...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-Add-version-guard-for-KPluginMetaData-fromJsonFile.patch of Package plasma5-workspace
From 0b28ddfefbf2ce68bdc7af2248858ad2a9c444ec Mon Sep 17 00:00:00 2001 From: Alexander Lohnau <alexander.lohnau@gmx.de> Date: Wed, 7 Dec 2022 19:36:46 +0100 Subject: [PATCH] Add version guard for KPluginMetaData::fromJsonFile BUG: 462718 --- kcms/desktoptheme/themesmodel.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kcms/desktoptheme/themesmodel.cpp b/kcms/desktoptheme/themesmodel.cpp index ce3cac14b..83609c7fd 100644 --- a/kcms/desktoptheme/themesmodel.cpp +++ b/kcms/desktoptheme/themesmodel.cpp @@ -17,6 +17,7 @@ #include <KColorScheme> #include <KDesktopFile> #include <KPluginMetaData> +#include <kcoreaddons_version.h> #include <KConfigGroup> #include <KSharedConfig> @@ -181,7 +182,11 @@ void ThemesModel::load() QString comment; if (theme.endsWith(QLatin1String(".json"))) { +#if KCOREADDONS_VERSION >= QT_VERSION_CHECK(5, 91, 0) KPluginMetaData data = KPluginMetaData::fromJsonFile(theme); +#else + KPluginMetaData data(theme); +#endif name = data.name(); comment = data.description(); } else { -- 2.38.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor