[Telepathy-commits] [telepathy-qt4/master] Don't screw up the QMetaObject::invokeMethod calls in scheduling handle release sweeps

Olli Salli olli.salli at collabora.co.uk
Wed Jan 21 04:42:17 PST 2009


---
 TelepathyQt4/cli-connection.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/TelepathyQt4/cli-connection.cpp b/TelepathyQt4/cli-connection.cpp
index 782cefd..846211d 100644
--- a/TelepathyQt4/cli-connection.cpp
+++ b/TelepathyQt4/cli-connection.cpp
@@ -675,7 +675,7 @@ void Connection::unrefHandle(uint type, uint handle)
         if (!handleContext->types[type].releaseScheduled) {
             if (!handleContext->types[type].requestsInFlight) {
                 debug() << "Lost last reference to at least one handle of type" << type << "and no requests in flight for that type - scheduling a release sweep";
-                QMetaObject::invokeMethod(this, SLOT("doReleaseSweep(uint)"), Qt::QueuedConnection, Q_ARG(uint, type));
+                QMetaObject::invokeMethod(this, "doReleaseSweep", Qt::QueuedConnection, Q_ARG(uint, type));
                 handleContext->types[type].releaseScheduled = true;
             } else {
                 debug() << "Deferring handle release sweep for type" << type << "to when there are no requests in flight for that type";
@@ -721,7 +721,7 @@ void Connection::handleRequestLanded(uint type)
 
     if (!--handleContext->types[type].requestsInFlight && !handleContext->types[type].toRelease.isEmpty() && !handleContext->types[type].releaseScheduled) {
         debug() << "All handle requests for type" << type << "landed and there are handles of that type to release - scheduling a release sweep";
-        QMetaObject::invokeMethod(this, SLOT("doReleaseSweep(uint)"), Qt::QueuedConnection, Q_ARG(uint, type));
+        QMetaObject::invokeMethod(this, "doReleaseSweep", Qt::QueuedConnection, Q_ARG(uint, type));
         handleContext->types[type].releaseScheduled = true;
     }
 }
-- 
1.5.6.5




More information about the Telepathy-commits mailing list