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.
This commit is contained in:
Matt Lowe 2015-04-18 22:23:51 +02:00
parent 69a9484e45
commit 86fa02c6c5

View file

@ -305,6 +305,7 @@ QString ChatView::getNameFromUserList(QMap<QString, UserListTWI *> &userList, QS
void ChatView::clearChat() {
document()->clear();
lastSender = "";
}
void ChatView::enterEvent(QEvent * /*event*/)