Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package plasma6-workspace for
openSUSE:Factory checked in at 2026-05-25 21:53:31
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/plasma6-workspace (Old)
and /work/SRC/openSUSE:Factory/.plasma6-workspace.new.2084 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "plasma6-workspace"
Mon May 25 21:53:31 2026 rev:54 rq:1354943 version:6.6.5
Changes:
--------
--- /work/SRC/openSUSE:Factory/plasma6-workspace/plasma6-workspace.changes
2026-05-13 21:39:03.158993373 +0200
+++
/work/SRC/openSUSE:Factory/.plasma6-workspace.new.2084/plasma6-workspace.changes
2026-05-25 21:56:46.688901952 +0200
@@ -1,0 +2,6 @@
+Sun May 24 10:21:27 UTC 2026 - Fabian Vogt <[email protected]>
+
+- Add patch to fix expiration of notifications with Qt 6.11.1 (kde#520120):
+ * 0001-libnotificationmanager-Return-something-of-the-corre.patch
+
+-------------------------------------------------------------------
New:
----
0001-libnotificationmanager-Return-something-of-the-corre.patch
----------(New B)----------
New:- Add patch to fix expiration of notifications with Qt 6.11.1
(kde#520120):
* 0001-libnotificationmanager-Return-something-of-the-corre.patch
----------(New E)----------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ plasma6-workspace.spec ++++++
--- /var/tmp/diff_new_pack.w18vyZ/_old 2026-05-25 21:56:47.616940128 +0200
+++ /var/tmp/diff_new_pack.w18vyZ/_new 2026-05-25 21:56:47.616940128 +0200
@@ -42,6 +42,8 @@
%endif
Source3: sddm.conf
Source4: waitforkded.conf
+# PATCH-FIX-UPSTREAM
+Patch1: 0001-libnotificationmanager-Return-something-of-the-corre.patch
# PATCHES 501-??? are PATCH-FIX-OPENSUSE
Patch501: 0001-Use-qdbus6.patch
Patch502: 0001-Ignore-default-sddm-face-icons.patch
++++++ 0001-libnotificationmanager-Return-something-of-the-corre.patch ++++++
>From 31a64dfa1a71ab1b6a495f2f44132c86858acb8f Mon Sep 17 00:00:00 2001
From: Kai Uwe Broulik <[email protected]>
Date: Tue, 19 May 2026 11:52:28 +0000
Subject: [PATCH] libnotificationmanager: Return something of the correct type
for most roles
Qt doesn't like the model not return anything (empty QVariant) when
put in a required property for a model. For example required property string
will happily convert to "undefined" as a string which then blows up in
client code left and right.
Therefore, return something of the correct type for most job properties.
See also 1f246410 which addressed this in one case but seems Qt 6.11.1
changed it again to be broken in more places.
BUG: 520120
(cherry picked from commit faf0e944008a8ce3182e11a2ee192b1589c5661a)
Co-authored-by: Kai Uwe Broulik <[email protected]>
---
libnotificationmanager/jobsmodel.cpp | 29 ++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/libnotificationmanager/jobsmodel.cpp
b/libnotificationmanager/jobsmodel.cpp
index 4bc820288f..459a7c639d 100644
--- a/libnotificationmanager/jobsmodel.cpp
+++ b/libnotificationmanager/jobsmodel.cpp
@@ -145,8 +145,37 @@ QVariant JobsModel::data(const QModelIndex &index, int
role) const
// There's hardly a reason why it should show up as "unread".
case Notifications::ReadRole:
return true;
+
+ // Qt doesn't like the model not returning anything, for example
+ // casting it to "undefined" as a string (when put in a required property
string)
+ // blowing up in client code left and right.
+ case Notifications::NotifyRcNameRole:
+ case Notifications::OriginNameRole:
+ case Notifications::DefaultActionLabelRole:
+ case Notifications::ConfigureActionLabelRole:
+ case Notifications::ReplyActionLabelRole:
+ case Notifications::ReplyPlaceholderTextRole:
+ case Notifications::ReplySubmitButtonTextRole:
+ case Notifications::ReplySubmitButtonIconNameRole:
+ case Notifications::CategoryRole:
+ return QString();
+
+ case Notifications::ActionNamesRole:
case Notifications::ActionLabelsRole:
return QStringList();
+
+ case Notifications::HasDefaultActionRole:
+ case Notifications::ResidentRole:
+ case Notifications::TransientRole:
+ case Notifications::UserActionFeedbackRole:
+ case Notifications::HasReplyActionRole:
+ return false;
+
+ case Notifications::UrlsRole:
+ return QVariant::fromValue(QList<QUrl>());
+
+ case Notifications::UrgencyRole:
+ return Notifications::NormalUrgency;
}
return {};
--
2.53.0