From f4483142e163e72c306fd995c90decb030c08e80 Mon Sep 17 00:00:00 2001 From: Patrick von Reth Date: Fri, 14 Feb 2014 12:48:33 +0100 Subject: [PATCH] fix --- src/core/plugins/snorebackend.cpp | 2 +- src/plugins/backends/snore/snorenotifier.cpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/plugins/snorebackend.cpp b/src/core/plugins/snorebackend.cpp index 496e835..bd8ce90 100644 --- a/src/core/plugins/snorebackend.cpp +++ b/src/core/plugins/snorebackend.cpp @@ -70,7 +70,7 @@ bool SnoreBackend::initialize( SnoreCore *snore ) void SnoreBackend::requestCloseNotification (Notification notification, Notification::CloseReasons reason ) { - if(canCloseNotification()) + if(canCloseNotification() && notification.isValid()) { closeNotification(notification,reason); slotCloseNotification(notification); diff --git a/src/plugins/backends/snore/snorenotifier.cpp b/src/plugins/backends/snore/snorenotifier.cpp index 7fb5b81..ca28f12 100644 --- a/src/plugins/backends/snore/snorenotifier.cpp +++ b/src/plugins/backends/snore/snorenotifier.cpp @@ -71,7 +71,6 @@ void SnoreNotifier::slotNotify(Snore::Notification notification) void SnoreNotifier::slotCloseNotification(Snore::Notification notification) { - NotifyWidget *w = m_widgets[notification.hints().privateValue(this, "id").toInt()]; if(!m_queue.isEmpty()) {