From 492e264019c5c195b22568e9cdf9a5e87d0d9c03 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 7 Sep 2016 22:02:49 +0300 Subject: Allow run commands if no tab selected in chat window. --- src/gui/windows/chatwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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); -- cgit v1.2.3-70-g09d2