fixed exception form not shown

This commit is contained in:
Andreas Preikschat 2013-02-28 15:15:17 +01:00
parent 66a6502cdf
commit dfa2eb1afe

View File

@ -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()