forked from openlp/openlp
fixed exception form not shown
This commit is contained in:
parent
66a6502cdf
commit
dfa2eb1afe
@ -184,10 +184,10 @@ class OpenLP(QtGui.QApplication):
|
||||
``traceback``
|
||||
A traceback object with the details of where the exception occurred.
|
||||
"""
|
||||
if not hasattr(self, u'mainWindow'):
|
||||
if not hasattr(self, u'main_window'):
|
||||
log.exception(''.join(format_exception(exctype, value, traceback)))
|
||||
return
|
||||
if not hasattr(self, u'exceptionForm'):
|
||||
if not hasattr(self, u'exception_form'):
|
||||
self.exception_form = ExceptionForm(self.main_window)
|
||||
self.exception_form.exceptionTextEdit.setPlainText(''.join(format_exception(exctype, value, traceback)))
|
||||
self.set_normal_cursor()
|
||||
|
Loading…
Reference in New Issue
Block a user