Fix problems when showing help message in rich text format

Due to use of '<>' characters, the text has to be escaped for HTML.

See issue #1069
This commit is contained in:
mgrojo
2020-09-02 21:33:48 +02:00
parent c791a9ff7c
commit 0963cacc04

View File

@@ -40,11 +40,11 @@ int main( int argc, char ** argv )
// Create application object. All the initialisation stuff happens in there
Application a(argc, argv);
// If there has been output in the message box, let user see it.
// If there has been invocations to the message handler, show it to user in a message box.
if(!message.isEmpty()) {
QMessageBox messageBox;
messageBox.setTextFormat(Qt::RichText);
messageBox.setText("<pre>" + message + "</pre>");
messageBox.setText("<pre>" + message.toHtmlEscaped() + "</pre>");
messageBox.exec();
}