make sure to disconnect signal

This commit is contained in:
Patrick von Reth 2013-11-20 18:21:58 +01:00
parent e0e74c1011
commit 9f5b476b05
1 changed files with 1 additions and 0 deletions

View File

@ -203,6 +203,7 @@ bool SnoreCore::setPrimaryNotificationBackend ( const QString &backend )
qDebug()<<"Failed to initialize"<<b->name();
return false;
}
disconnect(m_notificationBackend,SIGNAL(closeNotification(Snore::Notification)));
connect(b,SIGNAL(closeNotification(Snore::Notification)),this,SLOT(slotNotificationClosed(Snore::Notification)));
}
m_notificationBackend = b;