Close -> Exit (as in the menu)

This commit is contained in:
Samuel Mehrbrodt 2015-08-27 10:15:51 +02:00
parent fc3a5f27c9
commit 7477f781ef
1 changed files with 3 additions and 3 deletions

View File

@ -1082,11 +1082,11 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow, RegistryProperties):
event.ignore()
else:
if Settings().value('advanced/enable exit confirmation'):
msg_box = QtGui.QMessageBox(QtGui.QMessageBox.Question, translate('OpenLP.MainWindow', 'Close OpenLP'),
translate('OpenLP.MainWindow', 'Are you sure you want to close OpenLP?'),
msg_box = QtGui.QMessageBox(QtGui.QMessageBox.Question, translate('OpenLP.MainWindow', 'Exit OpenLP'),
translate('OpenLP.MainWindow', 'Are you sure you want to exit OpenLP?'),
QtGui.QMessageBox.StandardButtons(QtGui.QMessageBox.Close |
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)
if msg_box.exec() == QtGui.QMessageBox.Close:
self.clean_up()