forked from openlp/openlp
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:
parent
2cb47f6040
commit
47c48618bc
@ -681,6 +681,7 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
|
|||||||
``message``
|
``message``
|
||||||
The message to be displayed.
|
The message to be displayed.
|
||||||
"""
|
"""
|
||||||
|
if hasattr(self.application, u'splash'):
|
||||||
self.application.splash.close()
|
self.application.splash.close()
|
||||||
QtGui.QMessageBox.critical(self, title, message)
|
QtGui.QMessageBox.critical(self, title, message)
|
||||||
|
|
||||||
@ -694,6 +695,7 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
|
|||||||
``message``
|
``message``
|
||||||
The message to be displayed.
|
The message to be displayed.
|
||||||
"""
|
"""
|
||||||
|
if hasattr(self.application, u'splash'):
|
||||||
self.application.splash.close()
|
self.application.splash.close()
|
||||||
QtGui.QMessageBox.warning(self, title, message)
|
QtGui.QMessageBox.warning(self, title, message)
|
||||||
|
|
||||||
@ -707,6 +709,7 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
|
|||||||
``message``
|
``message``
|
||||||
The message to be displayed.
|
The message to be displayed.
|
||||||
"""
|
"""
|
||||||
|
if hasattr(self.application, u'splash'):
|
||||||
self.application.splash.close()
|
self.application.splash.close()
|
||||||
QtGui.QMessageBox.information(self, title, message)
|
QtGui.QMessageBox.information(self, title, message)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user