diff --git a/src/timeline/InputBar.cpp b/src/timeline/InputBar.cpp
index f20b272b8334a0a0506ccf266f1554b06742bfa8..58a86d26076a673d68860cec7cbd812e674f4516 100644
--- a/src/timeline/InputBar.cpp
+++ b/src/timeline/InputBar.cpp
@@ -249,12 +249,12 @@ InputBar::updateState(int selectionStart_,
         history_index_ = 0;
 
         updateAtRoom(text_);
+        emit textChanged(text_);
     }
 
     selectionStart = selectionStart_;
     selectionEnd   = selectionEnd_;
     cursorPosition = cursorPosition_;
-    emit textChanged(text_);
 }
 
 QString