forked from openlp/openlp
Fixed the problems with the exception form. Not sure how to test it though...
This commit is contained in:
parent
6a839dc32a
commit
d09747a33a
@ -184,7 +184,8 @@ class OpenLP(QtGui.QApplication):
|
||||
``traceback``
|
||||
A traceback object with the details of where the exception occurred.
|
||||
"""
|
||||
log.exception(''.join(format_exception(exctype, value, traceback)))
|
||||
# We can't log.exception here because the last exception no longer exists, we're actually busy handling it.
|
||||
log.critical(''.join(format_exception(exctype, value, traceback)))
|
||||
if not hasattr(self, 'exception_form'):
|
||||
self.exception_form = ExceptionForm()
|
||||
self.exception_form.exception_text_edit.setPlainText(''.join(format_exception(exctype, value, traceback)))
|
||||
|
@ -101,7 +101,7 @@ class ExceptionForm(QtGui.QDialog, Ui_ExceptionDialog):
|
||||
"""
|
||||
Constructor.
|
||||
"""
|
||||
super(ExceptionForm, self).__init__(self.main_window)
|
||||
super(ExceptionForm, self).__init__()
|
||||
self.setupUi(self)
|
||||
self.settings_section = 'crashreport'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user