From 9cdf921519a3e74f480497d9f9f55606ff129639 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be>
Date: Fri, 8 Jul 2011 10:39:11 +0200
Subject: Fixed unread count on recent chats.


diff --git a/Swift/Controllers/Chat/ChatsManager.cpp b/Swift/Controllers/Chat/ChatsManager.cpp
index cf31bde..632ecd3 100644
--- a/Swift/Controllers/Chat/ChatsManager.cpp
+++ b/Swift/Controllers/Chat/ChatsManager.cpp
@@ -192,7 +192,7 @@ void ChatsManager::handleChatActivity(const JID& jid, const std::string& activit
 
 void ChatsManager::handleUnreadCountChanged(ChatController* controller) {
 	int unreadTotal = 0;
-	foreach (ChatListWindow::Chat chatItem, recentChats_) {
+	foreach (ChatListWindow::Chat& chatItem, recentChats_) {
 		if (controller && chatItem.jid.toBare() == controller->getToJID().toBare()) {
 			chatItem.setUnreadCount(controller->getUnreadCount());
 		}
-- 
cgit v0.10.2-6-g49f6