Fixed a traceback that occurred when calling critical_error_message_box and friends while the splashscreen is disabled in the settings.

This commit is contained in:
Arjan Schrijver 2013-03-18 14:30:31 +01:00
parent 2cb47f6040
commit 47c48618bc
1 changed files with 6 additions and 3 deletions

View File

@ -681,6 +681,7 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
``message``
The message to be displayed.
"""
if hasattr(self.application, u'splash'):
self.application.splash.close()
QtGui.QMessageBox.critical(self, title, message)
@ -694,6 +695,7 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
``message``
The message to be displayed.
"""
if hasattr(self.application, u'splash'):
self.application.splash.close()
QtGui.QMessageBox.warning(self, title, message)
@ -707,6 +709,7 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
``message``
The message to be displayed.
"""
if hasattr(self.application, u'splash'):
self.application.splash.close()
QtGui.QMessageBox.information(self, title, message)