move cursor to end of log buffer before inserting new text
This commit is contained in:
@ -988,6 +988,7 @@ void LammpsGui::logupdate()
|
|||||||
if (logwindow) {
|
if (logwindow) {
|
||||||
const auto text = capturer->GetChunk();
|
const auto text = capturer->GetChunk();
|
||||||
if (text.size() > 0) {
|
if (text.size() > 0) {
|
||||||
|
logwindow->moveCursor(QTextCursor::End);
|
||||||
logwindow->insertPlainText(text.c_str());
|
logwindow->insertPlainText(text.c_str());
|
||||||
logwindow->moveCursor(QTextCursor::End);
|
logwindow->moveCursor(QTextCursor::End);
|
||||||
logwindow->textCursor().deleteChar();
|
logwindow->textCursor().deleteChar();
|
||||||
|
|||||||
Reference in New Issue
Block a user