[telepathy-qt4/master] ChannelRequest: Proper retrieve Account property.
Andre Moreira Magalhaes (andrunko)
andre.magalhaes at collabora.co.uk
Tue May 5 10:44:05 PDT 2009
---
TelepathyQt4/channel-request.cpp | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/TelepathyQt4/channel-request.cpp b/TelepathyQt4/channel-request.cpp
index c4445b6..ecca981 100644
--- a/TelepathyQt4/channel-request.cpp
+++ b/TelepathyQt4/channel-request.cpp
@@ -271,10 +271,11 @@ void ChannelRequest::gotMainProperties(QDBusPendingCallWatcher *watcher)
mPriv->interfaces = qdbus_cast<QStringList>(props["Interfaces"]);
- QString accountObjectPath = qdbus_cast<QString>(props["Account"]);
+ QDBusObjectPath accountObjectPath =
+ qdbus_cast<QDBusObjectPath>(props["Account"]);
mPriv->account = Account::create(
TELEPATHY_ACCOUNT_MANAGER_BUS_NAME,
- accountObjectPath);
+ accountObjectPath.path());
connect(mPriv->account->becomeReady(),
SIGNAL(finished(Tp::PendingOperation *)),
SLOT(onAccountReady(Tp::PendingOperation *)));
@@ -300,6 +301,7 @@ void ChannelRequest::gotMainProperties(QDBusPendingCallWatcher *watcher)
void ChannelRequest::onAccountReady(PendingOperation *op)
{
if (op->isError()) {
+ warning() << "Unable to make account ready";
mPriv->readinessHelper->setIntrospectCompleted(FeatureCore, false,
op->errorName(), op->errorMessage());
return;
--
1.5.6.5
More information about the telepathy-commits
mailing list