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
This commit is contained in:
Vincent van Ravesteijn 2010-01-11 18:04:51 +00:00
parent 8c0cdb40d7
commit cdd1a5d338

View File

@ -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();
}