kcmutils/Port-these-two-to-KCModuleInfo_property-as-well.patch
Fabian Vogt 3bb98a852e Accepting request 808289 from home:wolfi323:test
- Update Fix-crash-when-loading-external-app.patch to last version
  that actually was committed upstream
- Add upstream patches to fix loading normal settings modules that
  got broken by the previous fix (kde#421898), and add unit tests:
  * Rename-KCModuleInfo-unittest-and-extend-it-with-fake-KCM.patch
  * Add-test-for-a-normal-KCM-with-desktop-file.patch
  * Repair-kcmshell5-after-previous-commits.patch
  * Port-these-two-to-KCModuleInfo_property-as-well.patch

OBS-URL: https://build.opensuse.org/request/show/808289
OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/kcmutils?expand=0&rev=213
2020-05-22 20:07:40 +00:00

37 lines
1.5 KiB
Diff

From e290e9e666fcf7a84dcd42529f4069d4c92098ae Mon Sep 17 00:00:00 2001
From: David Faure <faure@kde.org>
Date: Fri, 22 May 2020 14:18:42 +0200
Subject: Port these two to KCModuleInfo::property() as well, seems to fix
Configure Kontact
NO_CHANGELOG
---
src/ksettings/dialog.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/ksettings/dialog.cpp b/src/ksettings/dialog.cpp
index 2412413..08bd4a1 100644
--- a/src/ksettings/dialog.cpp
+++ b/src/ksettings/dialog.cpp
@@ -329,7 +329,7 @@ void DialogPrivate::createDialogFromServices()
//qDebug() << kcmInfos.count();
for (const KCModuleInfo &info : qAsConst(kcmInfos)) {
- const QStringList parentComponents = info.pluginInfo().property(QStringLiteral("X-KDE-ParentComponents")).toStringList();
+ const QStringList parentComponents = info.property(QStringLiteral("X-KDE-ParentComponents")).toStringList();
bool blacklisted = false;
for (const QString &parentComponent : parentComponents) {
if (componentBlacklist.contains(parentComponent)) {
@@ -340,7 +340,7 @@ void DialogPrivate::createDialogFromServices()
if (blacklisted) {
continue;
}
- const QString parentId = info.pluginInfo().property(QStringLiteral("X-KDE-CfgDlgHierarchy")).toString();
+ const QString parentId = info.property(QStringLiteral("X-KDE-CfgDlgHierarchy")).toString();
KPageWidgetItem *parent = pageItemForGroupId.value(parentId);
if (!parent) {
// dummy kcm
--
cgit v1.1