fix crash if notification is closed and there is no primary backend
This commit is contained in:
parent
d1b54f7028
commit
1900ff2364
|
@ -177,8 +177,10 @@ bool SnoreCore::setPrimaryNotificationBackend(const QString &backend)
|
|||
void SnoreCore::requestCloseNotification(Notification n, Notification::CloseReasons r)
|
||||
{
|
||||
Q_D(SnoreCore);
|
||||
if (d->m_notificationBackend) {
|
||||
d->m_notificationBackend->requestCloseNotification(n, r);
|
||||
}
|
||||
}
|
||||
|
||||
bool SnoreCore::primaryBackendSupportsRichtext()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue