fix
This commit is contained in:
parent
50ed6e2943
commit
f4483142e1
|
@ -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);
|
||||||
|
|
|
@ -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())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue