diff --git a/src/gui/MessageBox.cpp b/src/gui/MessageBox.cpp index 94a4107bd..87898ff5c 100644 --- a/src/gui/MessageBox.cpp +++ b/src/gui/MessageBox.cpp @@ -91,7 +91,9 @@ MessageBox::Button MessageBox::messageBox(QWidget* parent, msgBox.setTextFormat(Qt::RichText); msgBox.setIcon(icon); msgBox.setWindowTitle(title); - msgBox.setText(text); + // Replace newlines with HTML line breaks + auto fixedText = text; + msgBox.setText(fixedText.replace("\n", "
")); if (m_overrideParent) { // Force the creation of the QWindow, without this windowHandle() will return nullptr