move cursor to end of log buffer before inserting new text

This commit is contained in:
Axel Kohlmeyer
2024-10-14 09:41:45 -04:00
parent db3416c4b3
commit 38500c647b

View File

@ -988,6 +988,7 @@ void LammpsGui::logupdate()
if (logwindow) {
const auto text = capturer->GetChunk();
if (text.size() > 0) {
logwindow->moveCursor(QTextCursor::End);
logwindow->insertPlainText(text.c_str());
logwindow->moveCursor(QTextCursor::End);
logwindow->textCursor().deleteChar();