[telepathy-qt4/master] Channel: Proper feed ReadinessHelper with interfaces when they are retrieved.

Andre Moreira Magalhaes (andrunko) andre.magalhaes at collabora.co.uk
Wed Aug 12 08:55:24 PDT 2009


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

diff --git a/TelepathyQt4/channel.cpp b/TelepathyQt4/channel.cpp
index e8f632a..1914c0a 100644
--- a/TelepathyQt4/channel.cpp
+++ b/TelepathyQt4/channel.cpp
@@ -446,6 +446,7 @@ void Channel::Private::extract0177MainProps(const QVariantMap &props)
         debug() << " Found properties specified in 0.17.7";
 
         parent->setInterfaces(qdbus_cast<QStringList>(props["Interfaces"]));
+        readinessHelper->setInterfaces(parent->interfaces());
         channelType = qdbus_cast<QString>(props["ChannelType"]);
         targetHandle = qdbus_cast<uint>(props["TargetHandle"]);
         targetHandleType = qdbus_cast<uint>(props["TargetHandleType"]);
@@ -2157,6 +2158,7 @@ void Channel::gotInterfaces(QDBusPendingCallWatcher *watcher)
 
     debug() << "Got reply to fallback Channel::GetInterfaces()";
     setInterfaces(reply.value());
+    mPriv->readinessHelper->setInterfaces(interfaces());
     mPriv->nowHaveInterfaces();
 
     mPriv->fakeGroupInterfaceIfNeeded();
-- 
1.5.6.5



More information about the telepathy-commits mailing list