Guard agains empty notification
This commit is contained in:
parent
81ba4e3a3e
commit
bb7cd8f261
1 changed files with 4 additions and 0 deletions
|
@ -153,12 +153,16 @@ void NotificationPresenterLinux::DeleteNotification(NotifyNotification* notifica
|
||||||
}
|
}
|
||||||
|
|
||||||
void NotificationPresenterLinux::OnNotificationClosed(NotifyNotification* notification) {
|
void NotificationPresenterLinux::OnNotificationClosed(NotifyNotification* notification) {
|
||||||
|
if (!notification)
|
||||||
|
return;
|
||||||
GetDelegateFromNotification(notification)->NotificationClosed();
|
GetDelegateFromNotification(notification)->NotificationClosed();
|
||||||
DeleteNotification(notification);
|
DeleteNotification(notification);
|
||||||
}
|
}
|
||||||
|
|
||||||
void NotificationPresenterLinux::OnNotificationView(
|
void NotificationPresenterLinux::OnNotificationView(
|
||||||
NotifyNotification* notification, char* action) {
|
NotifyNotification* notification, char* action) {
|
||||||
|
if (!notification)
|
||||||
|
return;
|
||||||
GetDelegateFromNotification(notification)->NotificationClick();
|
GetDelegateFromNotification(notification)->NotificationClick();
|
||||||
DeleteNotification(notification);
|
DeleteNotification(notification);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue