[telepathy-qt4/master] Proper demarshal result of a PendingVariant call.

Andre Moreira Magalhaes (andrunko) andre.magalhaes at collabora.co.uk
Wed Sep 16 18:53:17 PDT 2009


---
 TelepathyQt4/pending-variant.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/TelepathyQt4/pending-variant.cpp b/TelepathyQt4/pending-variant.cpp
index 027e526..62de011 100644
--- a/TelepathyQt4/pending-variant.cpp
+++ b/TelepathyQt4/pending-variant.cpp
@@ -64,11 +64,11 @@ QVariant PendingVariant::result() const
 
 void PendingVariant::watcherFinished(QDBusPendingCallWatcher* watcher)
 {
-    QDBusPendingReply<QVariant> reply = *watcher;
+    QDBusPendingReply<QDBusVariant> reply = *watcher;
 
     if (!reply.isError()) {
         debug() << "Got reply to PendingVariant call";
-        mPriv->result = reply.value();
+        mPriv->result = reply.value().variant();
         setFinished();
     } else {
         debug().nospace() << "PendingVariant call failed: " <<
-- 
1.5.6.5




More information about the telepathy-commits mailing list