[telepathy-qt4/master] PendingChannelRequest: Use TELEPATHY_DBUS_ERROR_UNKNOWN_METHOD constant.

Andre Moreira Magalhaes (andrunko) andre.magalhaes at collabora.co.uk
Thu Jun 11 10:18:34 PDT 2009


---
 TelepathyQt4/pending-channel-request.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/TelepathyQt4/pending-channel-request.cpp b/TelepathyQt4/pending-channel-request.cpp
index 653b52c..a3fec59 100644
--- a/TelepathyQt4/pending-channel-request.cpp
+++ b/TelepathyQt4/pending-channel-request.cpp
@@ -142,7 +142,8 @@ PendingOperation *PendingChannelRequest::cancel()
 {
     if (isFinished()) {
         // CR has already succeeded or failed, so let's just fail here
-        return new PendingFailure(this, "org.freedesktop.DBus.UnknownMethod",
+        return new PendingFailure(this,
+                TELEPATHY_DBUS_ERROR_UNKNOWN_METHOD,
                 "ChannnelRequest already finished");
     }
 
-- 
1.5.6.5




More information about the telepathy-commits mailing list