From aa989d1b3ca9014c87a38b04d23b22b664d87aae Mon Sep 17 00:00:00 2001 From: justin Date: Fri, 15 Jul 2016 12:23:53 -0600 Subject: [PATCH] Previous edit to log view broke it -- if you clicked on the screen, text would insert there. movecursor is needed on both sides --- src/gui/Src/Gui/LogView.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui/Src/Gui/LogView.cpp b/src/gui/Src/Gui/LogView.cpp index beb99ebd..f923e9db 100644 --- a/src/gui/Src/Gui/LogView.cpp +++ b/src/gui/Src/Gui/LogView.cpp @@ -103,7 +103,10 @@ void LogView::addMsgToLogSlot(QString msg) return; if(this->document()->characterCount() > 10000 * 100) //limit the log to ~100mb this->clear(); + // This sets the cursor to the end for the next insert + this->moveCursor(QTextCursor::End); this->insertPlainText(msg); + // This sets the cursor to the end to display the new text this->moveCursor(QTextCursor::End); }