forked from openlp/openlp
fixes #1660478 - Opening recent file does not prompt to save changes
This commit is contained in:
parent
98d5f0ec67
commit
71ad60d038
@ -469,6 +469,12 @@ class ServiceManager(OpenLPMixin, RegistryMixin, QtWidgets.QWidget, Ui_ServiceMa
|
|||||||
Load a recent file as the service triggered by mainwindow recent service list.
|
Load a recent file as the service triggered by mainwindow recent service list.
|
||||||
:param field:
|
:param field:
|
||||||
"""
|
"""
|
||||||
|
if self.is_modified():
|
||||||
|
result = self.save_modified_service()
|
||||||
|
if result == QtWidgets.QMessageBox.Cancel:
|
||||||
|
return False
|
||||||
|
elif result == QtWidgets.QMessageBox.Save:
|
||||||
|
self.decide_save_method()
|
||||||
sender = self.sender()
|
sender = self.sender()
|
||||||
self.load_file(sender.data())
|
self.load_file(sender.data())
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user