dont do anything on enter if chat input is empty

This commit is contained in:
ouwou 2020-11-28 02:22:45 -05:00
parent 6f7ea234e5
commit d8b788829a

View File

@ -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);