kdeui: fix KNotification sound notification feature

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2023-09-19 19:53:46 +03:00
parent 00400ef6de
commit bc8e0c451e

View file

@ -195,10 +195,7 @@ void KNotificationManager::send(KNotification *notification, const bool persiste
}
if (eventactions.contains(QString::fromLatin1("Sound"))) {
QString eventsound = notification->icon();
if (eventsound.isEmpty()) {
eventsound = eventgroup.readEntry("Sound");
}
QString eventsound = eventgroup.readEntry("Sound");
if (eventsound.isEmpty()) {
eventsound = globalgroup.readEntry("Sound");
}