diff --git a/src/plugins/projectexplorer/compileoutputwindow.cpp b/src/plugins/projectexplorer/compileoutputwindow.cpp
index 95e12558ad6caa1ff2035e0ed3afa19057fd41de..591e9e10eb9fa990c80e939f2aa0e39838654bd2 100644
--- a/src/plugins/projectexplorer/compileoutputwindow.cpp
+++ b/src/plugins/projectexplorer/compileoutputwindow.cpp
@@ -116,8 +116,10 @@ void CompileOutputWindow::appendText(const QString &text, const QTextCharFormat
 
     cursor.endEditBlock();
 
-    if (shouldScroll)
+    if (shouldScroll) {
+        m_textEdit->verticalScrollBar()->setValue(m_textEdit->verticalScrollBar()->maximum());
         m_textEdit->setTextCursor(cursor);
+    }
 }
 
 void CompileOutputWindow::clearContents()