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:
parent
69a9484e45
commit
86fa02c6c5
1 changed files with 1 additions and 0 deletions
|
@ -305,6 +305,7 @@ QString ChatView::getNameFromUserList(QMap<QString, UserListTWI *> &userList, QS
|
||||||
|
|
||||||
void ChatView::clearChat() {
|
void ChatView::clearChat() {
|
||||||
document()->clear();
|
document()->clear();
|
||||||
|
lastSender = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
void ChatView::enterEvent(QEvent * /*event*/)
|
void ChatView::enterEvent(QEvent * /*event*/)
|
||||||
|
|
Loading…
Reference in a new issue