mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 02:42:48 +00:00
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:
parent
0ef3e53e20
commit
c46a4464b5
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue