diff options
author | Remko Tronçon <git@el-tramo.be> | 2011-07-08 08:39:11 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2011-07-08 08:42:25 (GMT) |
commit | 9cdf921519a3e74f480497d9f9f55606ff129639 (patch) | |
tree | b19712e2e5703f132c899272012419455c354ccd | |
parent | 617aae78858ea50aa82cd9012f41c547057f5707 (diff) | |
download | swift-9cdf921519a3e74f480497d9f9f55606ff129639.zip swift-9cdf921519a3e74f480497d9f9f55606ff129639.tar.bz2 |
Fixed unread count on recent chats.
-rw-r--r-- | Swift/Controllers/Chat/ChatsManager.cpp | 2 |
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()); } |