forked from openlp/openlp
PEP8
This commit is contained in:
parent
8d791a51f4
commit
813cbaf2ad
@ -1083,10 +1083,9 @@ 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'))
|
||||||
msg_box.setDefaultButton(QtGui.QMessageBox.Close)
|
msg_box.setDefaultButton(QtGui.QMessageBox.Close)
|
||||||
if msg_box.exec() == QtGui.QMessageBox.Close:
|
if msg_box.exec() == QtGui.QMessageBox.Close:
|
||||||
|
Loading…
Reference in New Issue
Block a user