Don't send empty messages
This commit is contained in:
parent
4166a863b4
commit
21fdb26bd4
1 changed files with 3 additions and 0 deletions
|
|
@ -133,6 +133,9 @@ FilteredTextEdit::minimumSizeHint() const
|
|||
void
|
||||
FilteredTextEdit::submit()
|
||||
{
|
||||
if (toPlainText().trimmed().isEmpty())
|
||||
return;
|
||||
|
||||
if (true_history_.size() == INPUT_HISTORY_SIZE)
|
||||
true_history_.pop_back();
|
||||
true_history_.push_front(toPlainText());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue