mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-28 06:49:43 +00:00
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:
parent
8c0cdb40d7
commit
cdd1a5d338
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user