mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-02-09 13:18:33 -06:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user