Skip to content
Snippets Groups Projects
Commit 63c19fe6 authored by inso's avatar inso
Browse files

Make link clickable in error dialog (#486)

parent 3e4d3bc2
No related branches found
No related tags found
No related merge requests found
......@@ -65,14 +65,12 @@ def exception_message(log_lines, exc_info):
----
{stacktrace}
""".format(log_lines='\n'.join(log_lines), stacktrace='\n'.join(stacktrace))
mb = QMessageBox(QMessageBox.Critical, "Critical error",
"""A critical error occured. Select the details to display it.
Please report it to <a href='https://github.com/duniter/sakia/issues/new'>the developers github</a>""",
mb = QMessageBox(QMessageBox.Critical, "Critical error", """A critical error occured. Select the details to display it.
Please report it to <a href='https://github.com/duniter/sakia/issues/new/'>the developers github</a>""",
QMessageBox.Ok, QApplication.activeWindow())
mb.setDetailedText(message)
mb.setTextFormat(Qt.RichText)
mb.setTextInteractionFlags(Qt.TextSelectableByMouse)
mb.exec()
if __name__ == '__main__':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment