[telepathy-qt4/master] ContactManager: Use ensureChannel to create contact list groups, so it succeeds if the group already exists.

Andre Moreira Magalhaes (andrunko) andre.magalhaes at collabora.co.uk
Thu Jul 23 10:10:05 PDT 2009


---
 TelepathyQt4/contact-manager.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/TelepathyQt4/contact-manager.cpp b/TelepathyQt4/contact-manager.cpp
index c2ba2b3..d67aff2 100644
--- a/TelepathyQt4/contact-manager.cpp
+++ b/TelepathyQt4/contact-manager.cpp
@@ -221,7 +221,7 @@ PendingOperation *ContactManager::addGroup(const QString &group)
                                  Tp::HandleTypeGroup);
     request.insert(QLatin1String(TELEPATHY_INTERFACE_CHANNEL ".TargetID"),
                                  group);
-    return connection()->createChannel(request);
+    return connection()->ensureChannel(request);
 }
 
 /**
-- 
1.5.6.5




More information about the telepathy-commits mailing list