From cdd1a5d338c96892121c49bf87a4dadefbc0b050 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Mon, 11 Jan 2010 18:04:51 +0000 Subject: [PATCH] GuiProgressView: Always add the new text to the end of the TextEdit. This ends the mess that the messages are pretty randomly inserted wherever the cursor is accidentally put. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32974 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiProgressView.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/frontends/qt4/GuiProgressView.cpp b/src/frontends/qt4/GuiProgressView.cpp index 0856e0d989..ccab654ebc 100644 --- a/src/frontends/qt4/GuiProgressView.cpp +++ b/src/frontends/qt4/GuiProgressView.cpp @@ -162,6 +162,7 @@ void GuiProgressView::clearText() void GuiProgressView::appendLyXErrText(QString const & text) { + widget_->outTE->moveCursor(QTextCursor::End); widget_->outTE->insertPlainText(text); widget_->outTE->ensureCursorVisible(); @@ -183,6 +184,7 @@ void GuiProgressView::appendText(QString const & text) if (!text.endsWith("\n")) str += "\n"; + widget_->outTE->moveCursor(QTextCursor::End); widget_->outTE->insertPlainText(str); widget_->outTE->ensureCursorVisible(); } -- 2.39.2