Qt: fix log stacking bug when wordwrap occurs

This commit is contained in:
Megamouse 2017-09-21 01:40:44 +02:00 committed by Ivan
parent 0b51102167
commit 9650218bb8

View File

@ -371,7 +371,7 @@ void log_frame::UpdateUI()
m_log_counter++;
suffix = QString(" x%1").arg(m_log_counter);
m_log->moveCursor(QTextCursor::End, QTextCursor::MoveAnchor);
m_log->moveCursor(QTextCursor::StartOfLine, QTextCursor::MoveAnchor);
m_log->moveCursor(QTextCursor::StartOfBlock, QTextCursor::MoveAnchor);
m_log->moveCursor(QTextCursor::End, QTextCursor::KeepAnchor);
m_log->textCursor().removeSelectedText();
m_log->textCursor().deletePreviousChar();