Insert new line before logging exist code
This commit is contained in:
parent
89889c1493
commit
4c760a2c08
|
@ -865,8 +865,11 @@ void LauncherOptionPage::handleSyncthingExited(int exitCode, QProcess::ExitStatu
|
||||||
if (!hasBeenShown()) {
|
if (!hasBeenShown()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
QTextCursor cursor = ui()->logTextEdit->textCursor();
|
QTextCursor cursor(ui()->logTextEdit->textCursor());
|
||||||
cursor.movePosition(QTextCursor::End);
|
cursor.movePosition(QTextCursor::End);
|
||||||
|
if (cursor.positionInBlock()) {
|
||||||
|
cursor.insertBlock();
|
||||||
|
}
|
||||||
switch (exitStatus) {
|
switch (exitStatus) {
|
||||||
case QProcess::NormalExit:
|
case QProcess::NormalExit:
|
||||||
cursor.insertText(QCoreApplication::translate("QtGui::LauncherOptionPage", "%1 exited with exit code %2\n")
|
cursor.insertText(QCoreApplication::translate("QtGui::LauncherOptionPage", "%1 exited with exit code %2\n")
|
||||||
|
|
Loading…
Reference in New Issue