forked from openlp/openlp
PEP8
This commit is contained in:
parent
8d791a51f4
commit
813cbaf2ad
@ -1083,8 +1083,7 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow, RegistryProperties):
|
|||||||
else:
|
else:
|
||||||
if Settings().value('advanced/enable exit confirmation'):
|
if Settings().value('advanced/enable exit confirmation'):
|
||||||
msg_box = QtGui.QMessageBox(QtGui.QMessageBox.Question, translate('OpenLP.MainWindow', 'Close OpenLP'),
|
msg_box = QtGui.QMessageBox(QtGui.QMessageBox.Question, translate('OpenLP.MainWindow', 'Close OpenLP'),
|
||||||
translate('OpenLP.MainWindow', 'Are you sure you want to close '
|
translate('OpenLP.MainWindow', 'Are you sure you want to close OpenLP?'),
|
||||||
'OpenLP?'),
|
|
||||||
QtGui.QMessageBox.StandardButtons(QtGui.QMessageBox.Close |
|
QtGui.QMessageBox.StandardButtons(QtGui.QMessageBox.Close |
|
||||||
QtGui.QMessageBox.Cancel), self)
|
QtGui.QMessageBox.Cancel), self)
|
||||||
msg_box.setButtonText(QtGui.QMessageBox.Close, translate('OpenLP.MainWindow', 'Close OpenLP'))
|
msg_box.setButtonText(QtGui.QMessageBox.Close, translate('OpenLP.MainWindow', 'Close OpenLP'))
|
||||||
|
Loading…
Reference in New Issue
Block a user