summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2020-11-28 02:23:00 -0500
committerouwou <26526779+ouwou@users.noreply.github.com>2020-11-28 02:23:00 -0500
commit0935e43baeabd9b3effc97c2d6a597bd8b61471a (patch)
tree9e111a71db90565ae0a7c93add669bda4ddcebf7 /components
parent1989b22993378f8bad9e5b6577b2c934814294cf (diff)
parentd8b788829ae56d6a2f8ec15c26ec2b84ce8d1b64 (diff)
downloadabaddon-portaudio-0935e43baeabd9b3effc97c2d6a597bd8b61471a.tar.gz
abaddon-portaudio-0935e43baeabd9b3effc97c2d6a597bd8b61471a.zip
Merge branch 'master' into disk-cache
Diffstat (limited to 'components')
-rw-r--r--components/chatwindow.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/components/chatwindow.cpp b/components/chatwindow.cpp
index 6f9e1c6..4973c35 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);