forked from openlp/openlp
Close -> Exit (as in the menu)
This commit is contained in:
parent
fc3a5f27c9
commit
7477f781ef
|
@ -1082,11 +1082,11 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow, RegistryProperties):
|
||||||
event.ignore()
|
event.ignore()
|
||||||
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', 'Exit OpenLP'),
|
||||||
translate('OpenLP.MainWindow', 'Are you sure you want to close OpenLP?'),
|
translate('OpenLP.MainWindow', 'Are you sure you want to exit 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', '&Exit 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:
|
||||||
self.clean_up()
|
self.clean_up()
|
||||||
|
|
Loading…
Reference in New Issue