From 1900ff23641ea30a527573872654b85380b99eee Mon Sep 17 00:00:00 2001 From: Patrick von Reth Date: Tue, 19 May 2015 14:10:49 +0200 Subject: [PATCH] fix crash if notification is closed and there is no primary backend --- src/libsnore/snore.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libsnore/snore.cpp b/src/libsnore/snore.cpp index cd700ff..5c3b88c 100644 --- a/src/libsnore/snore.cpp +++ b/src/libsnore/snore.cpp @@ -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()