1
0
Fork 0

GUI: fix small bug introduced by #2243

This commit is contained in:
Duncan Ogilvie 2019-11-05 00:29:20 +01:00
parent e7f342f914
commit 8577c58f68
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8
1 changed files with 2 additions and 0 deletions

View File

@ -442,6 +442,8 @@ void LogView::flushTimerSlot()
cursor.movePosition(QTextCursor::End);
cursor.beginEditBlock();
cursor.insertBlock();
// hack to not insert too many newlines: https://lists.qt-project.org/pipermail/qt-interest-old/2011-July/034725.html
cursor.deletePreviousChar();
cursor.insertHtml(logBuffer);
cursor.endEditBlock();
if(autoScroll)