openlp-core team mailing list archive
-
openlp-core team
-
Mailing list archive
-
Message #28013
[Merge] lp:~springermac/openlp/fix-exit-dialog into lp:openlp
Jonathan Springer has proposed merging lp:~springermac/openlp/fix-exit-dialog into lp:openlp.
Requested reviews:
OpenLP Core (openlp-core)
For more details, see:
https://code.launchpad.net/~springermac/openlp/fix-exit-dialog/+merge/281260
Fix traceback when exit dialog is shown.
--
Your team OpenLP Core is requested to review the proposed merge of lp:~springermac/openlp/fix-exit-dialog into lp:openlp.
=== modified file 'openlp/core/ui/mainwindow.py'
--- openlp/core/ui/mainwindow.py 2015-12-21 00:43:38 +0000
+++ openlp/core/ui/mainwindow.py 2015-12-22 22:23:06 +0000
@@ -1102,7 +1102,8 @@
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()
Follow ups