From d7f09103a253f3941d496e81fc445db930e80129 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Mon, 11 Dec 2023 00:45:21 +0100 Subject: [PATCH] notifications: Fix actions on kf6 We'd be adding them over and over when reusing them. --- plugins/notifications/notification.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/notifications/notification.cpp b/plugins/notifications/notification.cpp index 24ad8fbe0..82b12537b 100644 --- a/plugins/notifications/notification.cpp +++ b/plugins/notifications/notification.cpp @@ -121,6 +121,7 @@ void Notification::createKNotification(const NetworkPacket &np) } #if QT_VERSION_MAJOR == 6 + m_notification->clearActions(); for (const QString &actionId : std::as_const(m_actions)) { KNotificationAction *action = m_notification->addAction(actionId);