[Telepathy-commits] [telepathy-qt4/master] ReadinessHelper: Use proxy invalidation reason/message as error if proxy is invalid.

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


---
 TelepathyQt4/Client/readiness-helper.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/TelepathyQt4/Client/readiness-helper.cpp b/TelepathyQt4/Client/readiness-helper.cpp
index 16627e1..bca6f47 100644
--- a/TelepathyQt4/Client/readiness-helper.cpp
+++ b/TelepathyQt4/Client/readiness-helper.cpp
@@ -363,8 +363,8 @@ PendingReady *ReadinessHelper::becomeReady(QSet<uint> requestedFeatures)
     if (!mPriv->proxy->isValid()) {
         PendingReady *operation =
             new PendingReady(requestedFeatures, this);
-        operation->setFinishedWithError(TELEPATHY_ERROR_NOT_AVAILABLE,
-                "Proxy is invalid");
+        operation->setFinishedWithError(mPriv->proxy->invalidationReason(),
+                mPriv->proxy->invalidationMessage());
         return operation;
     }
 
-- 
1.5.6.5




More information about the telepathy-commits mailing list