From 86fa02c6c569cb29eebbfa0fe50b1802e42099c9 Mon Sep 17 00:00:00 2001 From: Matt Lowe Date: Sat, 18 Apr 2015 22:23:51 +0200 Subject: [PATCH] Added clear chat fix When clearing the chat, we now clear the last sender. This fixes the issue where you clear the chat and a user continues to talk, you get no indication of who is talking. Now it will show the users name. --- cockatrice/src/chatview.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/cockatrice/src/chatview.cpp b/cockatrice/src/chatview.cpp index 99da5a6c..3041ce9b 100644 --- a/cockatrice/src/chatview.cpp +++ b/cockatrice/src/chatview.cpp @@ -305,6 +305,7 @@ QString ChatView::getNameFromUserList(QMap &userList, QS void ChatView::clearChat() { document()->clear(); + lastSender = ""; } void ChatView::enterEvent(QEvent * /*event*/)