[telepathy-qt4/master] ChannelRequest: cancel does not check for isReady anymore. Let it fail if the proxy is invalid.

Andre Moreira Magalhaes (andrunko) andre.magalhaes at collabora.co.uk
Mon May 11 13:14:23 PDT 2009


---
 TelepathyQt4/channel-request.cpp |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/TelepathyQt4/channel-request.cpp b/TelepathyQt4/channel-request.cpp
index af165af..c67f321 100644
--- a/TelepathyQt4/channel-request.cpp
+++ b/TelepathyQt4/channel-request.cpp
@@ -244,11 +244,6 @@ QualifiedPropertyValueMapList ChannelRequest::requests() const
 
 PendingOperation *ChannelRequest::cancel()
 {
-    if (!isReady()) {
-        return new PendingFailure(this, TELEPATHY_ERROR_NOT_AVAILABLE,
-                "ChannelRequest not ready");
-    }
-
     return new PendingVoidMethodCall(this, mPriv->baseInterface->Cancel());
 }
 
-- 
1.5.6.5




More information about the telepathy-commits mailing list