Add text about stacktrace.asciidoc in crash dialog.

Closes #140.
This commit is contained in:
Florian Bruhin 2014-11-02 19:06:43 +01:00
parent 6e4759b65a
commit adfd1e5b9d

View File

@ -113,8 +113,8 @@ class _CrashDialog(QDialog):
"""Initialize the main text to be displayed on an exception. """Initialize the main text to be displayed on an exception.
Should be extended by superclass to set the actual text.""" Should be extended by superclass to set the actual text."""
self._lbl = QLabel() self._lbl = QLabel(wordWrap=True, openExternalLinks=True,
self._lbl.setWordWrap(True) textInteractionFlags=Qt.LinksAccessibleByMouse)
self._vbox.addWidget(self._lbl) self._vbox.addWidget(self._lbl)
def _init_checkboxes(self, debug): def _init_checkboxes(self, debug):
@ -318,7 +318,12 @@ class FatalCrashDialog(_CrashDialog):
def _init_text(self): def _init_text(self):
super()._init_text() super()._init_text()
text = "<b>qutebrowser was restarted after a fatal crash.</b>" text = ("<b>qutebrowser was restarted after a fatal crash.</b><br/>"
"<br/>Note: Crash reports for fatal crashes sometimes don't "
"contain the information necessary to fix an issue. Please "
"follow the steps in <a href='https://github.com/The-Compiler/"
"qutebrowser/blob/master/doc/stacktrace.asciidoc'>"
"stacktrace.asciidoc</a> to submit a stacktrace.<br/>")
self._lbl.setText(text) self._lbl.setText(text)
def _init_buttons(self): def _init_buttons(self):