[Telepathy-commits] [telepathy-qt4/master] Channel: invalidate when Closed is received

Simon McVittie simon.mcvittie at collabora.co.uk
Wed Jan 14 04:50:45 PST 2009


We don't really have an appropriate error code yet, so I've used
Cancelled.
---
 TelepathyQt4/Client/channel.cpp |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/TelepathyQt4/Client/channel.cpp b/TelepathyQt4/Client/channel.cpp
index c77ceec..dc7c135 100644
--- a/TelepathyQt4/Client/channel.cpp
+++ b/TelepathyQt4/Client/channel.cpp
@@ -662,6 +662,9 @@ void Channel::onClosed()
         mPriv->changeReadiness(ReadinessClosed);
     else if ((mPriv->readiness != ReadinessDead) && (mPriv->readiness != ReadinessClosed))
         mPriv->changeReadiness(ReadinessDead);
+
+    // I think this is the nearest error code we can get at the moment
+    invalidate(TELEPATHY_ERROR_CANCELLED, "Closed");
 }
 
 void Channel::onConnectionReadinessChanged(uint readiness)
-- 
1.5.6.5




More information about the Telepathy-commits mailing list