From 7f2bb148de7c6e731863c5b6b0cd00935e7ce044 Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Wed, 17 Jan 2024 00:57:50 +0100 Subject: [PATCH] [plugins/telephony] Clear actions before creating new notification action Otherwise we accumulate them BUG: 479904 (cherry picked from commit 2e99c3712234bccd4bc0353098cd0eafa603cc6e) --- plugins/telephony/telephonyplugin.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/telephony/telephonyplugin.cpp b/plugins/telephony/telephonyplugin.cpp index 0701d3785..206702caf 100644 --- a/plugins/telephony/telephonyplugin.cpp +++ b/plugins/telephony/telephonyplugin.cpp @@ -62,6 +62,7 @@ void TelephonyPlugin::createNotification(const NetworkPacket &np) if (event == QLatin1String("ringing")) { #if QT_VERSION_MAJOR == 6 + m_currentCallNotification->clearActions(); KNotificationAction *muteAction = m_currentCallNotification->addAction(i18n("Mute Call")); connect(muteAction, &KNotificationAction::activated, this, &TelephonyPlugin::sendMutePacket); #else