fix crash if notification is closed and there is no primary backend

This commit is contained in:
Patrick von Reth 2015-05-19 14:10:49 +02:00
parent d1b54f7028
commit 1900ff2364
1 changed files with 3 additions and 1 deletions

View File

@ -177,7 +177,9 @@ bool SnoreCore::setPrimaryNotificationBackend(const QString &backend)
void SnoreCore::requestCloseNotification(Notification n, Notification::CloseReasons r)
{
Q_D(SnoreCore);
d->m_notificationBackend->requestCloseNotification(n, r);
if (d->m_notificationBackend) {
d->m_notificationBackend->requestCloseNotification(n, r);
}
}
bool SnoreCore::primaryBackendSupportsRichtext()