notifications: Fix actions on kf6

We'd be adding them over and over when reusing them.
This commit is contained in:
Aleix Pol 2023-12-11 00:45:21 +01:00 committed by Aleix Pol Gonzalez
parent 92006080d2
commit d7f09103a2

View file

@ -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);