Commit 86fa02c6 authored by Matt Lowe's avatar Matt Lowe
Browse files

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.
parent 69a9484e
...@@ -305,6 +305,7 @@ QString ChatView::getNameFromUserList(QMap<QString, UserListTWI *> &userList, QS ...@@ -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*/)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment