Insert new line before logging exist code

This commit is contained in:
Martchus 2019-07-07 13:52:37 +02:00
parent 89889c1493
commit 4c760a2c08
1 changed files with 4 additions and 1 deletions

View File

@ -865,8 +865,11 @@ void LauncherOptionPage::handleSyncthingExited(int exitCode, QProcess::ExitStatu
if (!hasBeenShown()) {
return;
}
QTextCursor cursor = ui()->logTextEdit->textCursor();
QTextCursor cursor(ui()->logTextEdit->textCursor());
cursor.movePosition(QTextCursor::End);
if (cursor.positionInBlock()) {
cursor.insertBlock();
}
switch (exitStatus) {
case QProcess::NormalExit:
cursor.insertText(QCoreApplication::translate("QtGui::LauncherOptionPage", "%1 exited with exit code %2\n")