Disable rich text for ui_msgbox()-generated dialogs
No strings that gets passed to `ui_msgbox()` use HTML, and it causes newlines to be ignored unless replaced by <br> `MainWindow::showMessage()` can still accept rich text, but it's now optional and disabled by default
This commit is contained in:
@@ -142,11 +142,10 @@ ui_msgbox_header(int flags, void *header, void *message)
|
||||
// any error in early init
|
||||
if (main_window == nullptr) {
|
||||
QMessageBox msgBox(QMessageBox::Icon::Critical, hdr, msg);
|
||||
msgBox.setTextFormat(Qt::TextFormat::RichText);
|
||||
msgBox.exec();
|
||||
} else {
|
||||
// else scope it to main_window
|
||||
main_window->showMessage(flags, hdr, msg);
|
||||
main_window->showMessage(flags, hdr, msg, false);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user