[plugins/telephony] Clear actions before creating new notification action
Otherwise we accumulate them BUG: 479904
This commit is contained in:
parent
4a9a8ee883
commit
2e99c37122
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