summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-09-07 22:02:49 +0300
committerAndrei Karas <akaras@inbox.ru>2016-09-07 22:02:49 +0300
commit492e264019c5c195b22568e9cdf9a5e87d0d9c03 (patch)
treefd596e7487a14b81a6dfb79f0772b4bd06e2c58c /src/gui
parent4b53e78ab06a4a717470a76de707cbba9d0aab18 (diff)
downloadplus-492e264019c5c195b22568e9cdf9a5e87d0d9c03.tar.gz
plus-492e264019c5c195b22568e9cdf9a5e87d0d9c03.tar.bz2
plus-492e264019c5c195b22568e9cdf9a5e87d0d9c03.tar.xz
plus-492e264019c5c195b22568e9cdf9a5e87d0d9c03.zip
Allow run commands if no tab selected in chat window.
Diffstat (limited to 'src/gui')
-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);