diff options
Diffstat (limited to 'src/TextInputWidget.cc')
-rw-r--r-- | src/TextInputWidget.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/TextInputWidget.cc b/src/TextInputWidget.cc index ad053ea3..d71769f4 100644 --- a/src/TextInputWidget.cc +++ b/src/TextInputWidget.cc @@ -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()); |