[plugins/telephony] Clear actions before creating new notification action
Otherwise we accumulate them
BUG: 479904
(cherry picked from commit 2e99c37122
)
This commit is contained in:
parent
e77ce26cf8
commit
7f2bb148de
1 changed files with 1 additions and 0 deletions
|
@ -62,6 +62,7 @@ void TelephonyPlugin::createNotification(const NetworkPacket &np)
|
||||||
|
|
||||||
if (event == QLatin1String("ringing")) {
|
if (event == QLatin1String("ringing")) {
|
||||||
#if QT_VERSION_MAJOR == 6
|
#if QT_VERSION_MAJOR == 6
|
||||||
|
m_currentCallNotification->clearActions();
|
||||||
KNotificationAction *muteAction = m_currentCallNotification->addAction(i18n("Mute Call"));
|
KNotificationAction *muteAction = m_currentCallNotification->addAction(i18n("Mute Call"));
|
||||||
connect(muteAction, &KNotificationAction::activated, this, &TelephonyPlugin::sendMutePacket);
|
connect(muteAction, &KNotificationAction::activated, this, &TelephonyPlugin::sendMutePacket);
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in a new issue