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