make topicWidget capable of unsetting the topic
[quassel.git] / src / uisupport / multilineedit.cpp
index 699d4ec..f4a0b95 100644 (file)
@@ -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) {