diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-11-28 02:22:45 -0500 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-11-28 02:22:45 -0500 |
commit | d8b788829ae56d6a2f8ec15c26ec2b84ce8d1b64 (patch) | |
tree | 10bd40b32bf7577f2839a6067021aa817e051a72 /components | |
parent | 6f7ea234e559b8a43b40fa325f3425c2e8a8e6fd (diff) | |
download | abaddon-portaudio-d8b788829ae56d6a2f8ec15c26ec2b84ce8d1b64.tar.gz abaddon-portaudio-d8b788829ae56d6a2f8ec15c26ec2b84ce8d1b64.zip |
dont do anything on enter if chat input is empty
Diffstat (limited to 'components')
-rw-r--r-- | components/chatwindow.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/components/chatwindow.cpp b/components/chatwindow.cpp index a42319b..bf7d506 100644 --- a/components/chatwindow.cpp +++ b/components/chatwindow.cpp @@ -139,6 +139,7 @@ bool ChatWindow::on_key_press_event(GdkEventKey *e) { auto buf = m_input->get_buffer(); auto text = buf->get_text(); + if (text.size() == 0) return true; buf->set_text(""); m_signal_action_chat_submit.emit(text, m_active_channel); |