diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-09-07 22:02:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-09-07 22:02:49 +0300 |
commit | 492e264019c5c195b22568e9cdf9a5e87d0d9c03 (patch) | |
tree | fd596e7487a14b81a6dfb79f0772b4bd06e2c58c /src/gui | |
parent | 4b53e78ab06a4a717470a76de707cbba9d0aab18 (diff) | |
download | plus-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.cpp | 2 |
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); |