summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-07-08 08:39:11 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-07-08 08:42:25 (GMT)
commit9cdf921519a3e74f480497d9f9f55606ff129639 (patch)
treeb19712e2e5703f132c899272012419455c354ccd /Swift/Controllers/Chat
parent617aae78858ea50aa82cd9012f41c547057f5707 (diff)
downloadswift-contrib-9cdf921519a3e74f480497d9f9f55606ff129639.zip
swift-contrib-9cdf921519a3e74f480497d9f9f55606ff129639.tar.bz2
Fixed unread count on recent chats.
Diffstat (limited to 'Swift/Controllers/Chat')
-rw-r--r--Swift/Controllers/Chat/ChatsManager.cpp2
1 files changed, 1 insertions, 1 deletions
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());
}