[Telepathy-commits] [telepathy-qt4/master] Fixed removal of features from Account::Private::pendingFeatures.

Andre Moreira Magalhaes (andrunko) andre.magalhaes at collabora.co.uk
Fri Jan 16 10:51:32 PST 2009


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

diff --git a/TelepathyQt4/Client/account.cpp b/TelepathyQt4/Client/account.cpp
index 476e56e..0bb8032 100644
--- a/TelepathyQt4/Client/account.cpp
+++ b/TelepathyQt4/Client/account.cpp
@@ -935,7 +935,7 @@ void Account::onGetAvatarReturn(QDBusPendingCallWatcher *watcher)
 {
     QDBusPendingReply<QVariant> reply = *watcher;
 
-    mPriv->pendingFeatures ^= Account::FeatureAvatar;
+    mPriv->pendingFeatures &= ~(Account::FeatureAvatar);
 
     if (!reply.isError()) {
         mPriv->features |= Account::FeatureAvatar;
@@ -979,7 +979,7 @@ void Account::onConnectionManagerReady(PendingOperation *operation)
         error = (mPriv->protocolInfo == 0);
     }
 
-    mPriv->pendingFeatures ^= Account::FeatureProtocolInfo;
+    mPriv->pendingFeatures &= ~(Account::FeatureProtocolInfo);
 
     if (!error) {
         mPriv->features |= Account::FeatureProtocolInfo;
-- 
1.5.6.5




More information about the Telepathy-commits mailing list