mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-04-23 16:11:52 -04:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user