mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-26 04:58:49 +03:00
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
|
void
|
||||||
FilteredTextEdit::submit()
|
FilteredTextEdit::submit()
|
||||||
{
|
{
|
||||||
|
if (toPlainText().trimmed().isEmpty())
|
||||||
|
return;
|
||||||
|
|
||||||
if (true_history_.size() == INPUT_HISTORY_SIZE)
|
if (true_history_.size() == INPUT_HISTORY_SIZE)
|
||||||
true_history_.pop_back();
|
true_history_.pop_back();
|
||||||
true_history_.push_front(toPlainText());
|
true_history_.push_front(toPlainText());
|
||||||
|
|
Loading…
Reference in a new issue