X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fuisupport%2Fmultilineedit.cpp;h=f4a0b95af1858d01cc4e4793c67c9a324aff630d;hb=de7b3d6260c8e6a38738d9dc63517944ffaa7155;hp=699d4ec825eac48b46b122340146da61df96e0a9;hpb=09d19fe065125ccc6e406fa325d675387788ab3c;p=quassel.git diff --git a/src/uisupport/multilineedit.cpp b/src/uisupport/multilineedit.cpp index 699d4ec8..f4a0b95a 100644 --- a/src/uisupport/multilineedit.cpp +++ b/src/uisupport/multilineedit.cpp @@ -310,6 +310,8 @@ void MultiLineEdit::on_returnPressed(const QString & text) { } reset(); tempHistory.clear(); + } else { + emit noTextEntered(); } } @@ -358,6 +360,7 @@ void MultiLineEdit::on_textChanged() { on_documentHeightChanged(_lastDocumentHeight); } updateSizeHint(); + ensureCursorVisible(); } void MultiLineEdit::on_documentHeightChanged(qreal) {