[Telepathy-commits] [telepathy-qt4/master] Connection: Use reply.error() as invalidation error on gotStatus if there is an error.

Andre Moreira Magalhaes (andrunko) andre.magalhaes at collabora.co.uk
Mon Feb 23 10:13:00 PST 2009


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

diff --git a/TelepathyQt4/Client/connection.cpp b/TelepathyQt4/Client/connection.cpp
index c2777d8..d845c4b 100644
--- a/TelepathyQt4/Client/connection.cpp
+++ b/TelepathyQt4/Client/connection.cpp
@@ -765,8 +765,7 @@ void Connection::gotStatus(QDBusPendingCallWatcher *watcher)
         warning().nospace() << "GetStatus() failed with " <<
             reply.error().name() << ":" << reply.error().message();
 
-        invalidate(QLatin1String(TELEPATHY_ERROR_DISCONNECTED),
-                QString("ConnectionStatusReason = %1").arg(uint(mPriv->pendingStatusReason)));
+        invalidate(reply.error());
 
         // introspect core failed
         mPriv->readinessHelper->setIntrospectCompleted(0, false);
-- 
1.5.6.5




More information about the telepathy-commits mailing list