From 10623b4636a4418af741274892b7a04f17a014e0 Mon Sep 17 00:00:00 2001 From: Patrick von Reth Date: Fri, 25 Jul 2014 13:57:47 +0200 Subject: [PATCH] more qued connections --- src/core/plugins/snorebackend.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/plugins/snorebackend.cpp b/src/core/plugins/snorebackend.cpp index cd6ab95..7ae9f51 100644 --- a/src/core/plugins/snorebackend.cpp +++ b/src/core/plugins/snorebackend.cpp @@ -56,8 +56,8 @@ bool SnoreBackend::initialize( SnoreCore *snore ) connect( snore->d(), SIGNAL(applicationRegistered(const Snore::Application&)), this, SLOT(slotRegisterApplication(const Snore::Application&)), Qt::QueuedConnection); connect( snore->d(), SIGNAL(applicationDeregistered(const Snore::Application&)), this, SLOT(slotDeregisterApplication(const Snore::Application&)), Qt::QueuedConnection); - connect( this, SIGNAL(notificationClosed(Snore::Notification)), snore->d(), SLOT(slotNotificationClosed(Snore::Notification)),Qt::QueuedConnection); - connect( snore->d(), SIGNAL(notify(Snore::Notification)), this, SLOT(slotNotify(Snore::Notification)),Qt::QueuedConnection); + connect( this, SIGNAL(notificationClosed(Snore::Notification)), snore->d(), SLOT(slotNotificationClosed(Snore::Notification)), Qt::QueuedConnection); + connect( snore->d(), SIGNAL(notify(Snore::Notification)), this, SLOT(slotNotify(Snore::Notification)), Qt::QueuedConnection); foreach(const Application &a,snore->aplications()) { @@ -124,7 +124,7 @@ bool SnoreSecondaryBackend::initialize(SnoreCore *snore) { return false; } - connect( snore->d(), SIGNAL(notify(Snore::Notification)), this, SLOT(slotNotify(Snore::Notification))); + connect( snore->d(), SIGNAL(notify(Snore::Notification)), this, SLOT(slotNotify(Snore::Notification)), Qt::QueuedConnection); return true; } @@ -217,7 +217,7 @@ void SnoreBackend::startTimeout(Notification ¬ification) notification.old().data()->timeoutTimer()->stop(); } timer->setInterval(notification.timeout() * 1000); - connect(timer,SIGNAL(timeout()),this,SLOT(notificationTimedOut())); + connect(timer,SIGNAL(timeout()),this,SLOT(notificationTimedOut()), Qt::QueuedConnection); timer->start(); }