Support newlines in error dialog.
Translate "\n" to "<br>" in error dialog HTML.
This commit is contained in:
parent
fe84ad4e66
commit
26e12f5006
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue