From c1d93f4a45bdb433f36654bcc71d55a1bf4ee4b5 Mon Sep 17 00:00:00 2001
From: mae <qt-info@nokia.com>
Date: Mon, 12 Jul 2010 10:13:08 +0200
Subject: [PATCH] Fix scroll to bottom - again...

---
 src/plugins/projectexplorer/compileoutputwindow.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/plugins/projectexplorer/compileoutputwindow.cpp b/src/plugins/projectexplorer/compileoutputwindow.cpp
index 95e12558ad6..591e9e10eb9 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()
-- 
GitLab