diff options
Diffstat (limited to 'src/gui/chat.cpp')
-rw-r--r-- | src/gui/chat.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp index 7861bdb6..b0b15dbc 100644 --- a/src/gui/chat.cpp +++ b/src/gui/chat.cpp @@ -232,7 +232,10 @@ bool ChatWindow::isInputFocused() void ChatWindow::removeTab(ChatTab *tab) { // Prevent removal of the local chat tab - if (tab != localChatTab) mChatTabs->removeTab(tab); + if (tab == localChatTab) + return; + + mChatTabs->removeTab(tab); } void ChatWindow::addTab(ChatTab *tab) @@ -250,6 +253,11 @@ void ChatWindow::addTab(ChatTab *tab) logic(); } +void ChatWindow::removeWhisper(std::string nick) +{ + mWhispers.erase(nick); +} + void ChatWindow::chatSend(std::string &msg) { ChatTab *tab = getFocused(); |