This commit is contained in:
Patrick von Reth 2014-02-14 12:48:33 +01:00
parent 50ed6e2943
commit f4483142e1
2 changed files with 1 additions and 2 deletions

View File

@ -70,7 +70,7 @@ bool SnoreBackend::initialize( SnoreCore *snore )
void SnoreBackend::requestCloseNotification (Notification notification, Notification::CloseReasons reason ) void SnoreBackend::requestCloseNotification (Notification notification, Notification::CloseReasons reason )
{ {
if(canCloseNotification()) if(canCloseNotification() && notification.isValid())
{ {
closeNotification(notification,reason); closeNotification(notification,reason);
slotCloseNotification(notification); slotCloseNotification(notification);

View File

@ -71,7 +71,6 @@ void SnoreNotifier::slotNotify(Snore::Notification notification)
void SnoreNotifier::slotCloseNotification(Snore::Notification notification) void SnoreNotifier::slotCloseNotification(Snore::Notification notification)
{ {
NotifyWidget *w = m_widgets[notification.hints().privateValue(this, "id").toInt()]; NotifyWidget *w = m_widgets[notification.hints().privateValue(this, "id").toInt()];
if(!m_queue.isEmpty()) if(!m_queue.isEmpty())
{ {