Support newlines in error dialog.

Translate "\n" to "<br>" in error dialog HTML.
This commit is contained in:
Jim Broadus 2020-01-13 23:57:31 -08:00
parent fe84ad4e66
commit 26e12f5006
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ void ErrorDialog::UpdateContent() {
QString html;
for (const QString& message : current_messages_) {
if (!html.isEmpty()) html += "<hr/>";
html += message.toHtmlEscaped();
html += message.toHtmlEscaped().replace("\n", "<br>");
}
ui_->messages->setHtml(html);
}