From f3108cffe31233b86c23742f172df2f3af6d36a8 Mon Sep 17 00:00:00 2001 From: Jonathan Springer Date: Tue, 22 Dec 2015 17:20:39 -0500 Subject: [PATCH] Fix exit dialog --- openlp/core/ui/mainwindow.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openlp/core/ui/mainwindow.py b/openlp/core/ui/mainwindow.py index 33a12866a..c6eba4756 100644 --- a/openlp/core/ui/mainwindow.py +++ b/openlp/core/ui/mainwindow.py @@ -1102,7 +1102,8 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow, RegistryProperties): QtWidgets.QMessageBox.StandardButtons(QtWidgets.QMessageBox.Close | QtWidgets.QMessageBox.Cancel), self) - msg_box.setButtonText(QtWidgets.QMessageBox.Close, translate('OpenLP.MainWindow', '&Exit OpenLP')) + close_button = msg_box.button(QtWidgets.QMessageBox.Close) + close_button.setText(translate('OpenLP.MainWindow', '&Exit OpenLP')) msg_box.setDefaultButton(QtWidgets.QMessageBox.Close) if msg_box.exec() == QtWidgets.QMessageBox.Close: self.clean_up()