summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/windows/chatwindow.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/windows/chatwindow.cpp b/src/gui/windows/chatwindow.cpp
index 85284d4a2..1b33eab2f 100644
--- a/src/gui/windows/chatwindow.cpp
+++ b/src/gui/windows/chatwindow.cpp
@@ -640,6 +640,8 @@ void ChatWindow::chatInput(const std::string &message) const
else
{
tab = getFocused();
+ if (tab == nullptr)
+ tab = localChatTab;
}
if (tab)
tab->chatInput(msg);