UI: Avoid using newlines in error messages

Some errors include HTML links directing users to e.g. driver updates
or further information. Using a raw newline instead of <br> causes Qt to
skip parsing the HTML, resulting in an ugly mess of HTML displayed to
the user instead of the intended links.
This commit is contained in:
Richard Stanway
2023-09-12 19:17:38 +02:00
committed by Lain
parent 839461dc9b
commit c71bbcf4d9
2 changed files with 4 additions and 4 deletions

View File

@@ -7730,8 +7730,8 @@ void OBSBasic::RecordingStop(int code, QString last_error)
errorDescription = Str("Output.RecordError.Msg");
if (use_last_error && !last_error.isEmpty())
dstr_printf(errorMessage, "%s\n\n%s", errorDescription,
QT_TO_UTF8(last_error));
dstr_printf(errorMessage, "%s<br><br>%s",
errorDescription, QT_TO_UTF8(last_error));
else
dstr_copy(errorMessage, errorDescription);