kdeui: break once notification is found in KNotificationManager

assuming pointers to KNotification are unique then there should be only
one entry

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2024-04-08 12:56:42 +03:00
parent 0ef3e53e20
commit c46a4464b5

View file

@ -266,6 +266,7 @@ void KNotificationManager::close(KNotification *notification)
if (!closereply.isValid()) {
kWarning(s_knotificationarea) << "invalid close reply" << closereply.error().message();
}
break;
}
}
}
@ -280,6 +281,7 @@ void KNotificationManager::slotCloseRequested(const QString &eventid)
const QString notifyid = kNotifyID(notification);
if (notifyid == eventid) {
notification->close();
break;
}
}
}
@ -294,6 +296,7 @@ void KNotificationManager::slotActionRequested(const QString &eventid, const QSt
const QString notifyid = kNotifyID(notification);
if (notifyid == eventid) {
notification->activate(action.toUInt());
break;
}
}
}