[Telepathy-commits] [telepathy-qt4/master] ContactManager: Fixed bug when iterating trough contact list channels and there is an invalid channel.

Andre Moreira Magalhaes (andrunko) andre.magalhaes at collabora.co.uk
Wed Feb 25 09:16:05 PST 2009


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

diff --git a/TelepathyQt4/Client/contact-manager.cpp b/TelepathyQt4/Client/contact-manager.cpp
index 3f48d85..2bfd451 100644
--- a/TelepathyQt4/Client/contact-manager.cpp
+++ b/TelepathyQt4/Client/contact-manager.cpp
@@ -437,6 +437,7 @@ void ContactManager::setContactListChannels(
     while (i != end) {
         type = i.key();
         channel = i.value().channel;
+        ++i;
         if (!channel) {
             continue;
         }
@@ -467,8 +468,6 @@ void ContactManager::setContactListChannels(
                         const QSet<QSharedPointer<Contact> > &,
                         const Channel::GroupMemberChangeDetails &)),
                 method);
-
-        ++i;
     }
 }
 
-- 
1.5.6.5




More information about the telepathy-commits mailing list