Small fix

This commit is contained in:
Phill Ridout 2018-01-22 21:37:00 +00:00
parent ee144ad68b
commit 4423b61fc9

View File

@ -596,7 +596,7 @@ class ServiceManager(QtWidgets.QWidget, RegistryBase, Ui_ServiceManager, LogMixi
os.link(temp_file.name, str(file_path)) os.link(temp_file.name, str(file_path))
Settings().setValue(self.main_window.service_manager_settings_section + '/last directory', file_path.parent) Settings().setValue(self.main_window.service_manager_settings_section + '/last directory', file_path.parent)
except (PermissionError, OSError) as error: except (PermissionError, OSError) as error:
self.log_exception('Failed to save service to disk: {name}'.format(name=temp_file.name)) self.log_exception('Failed to save service to disk: {name}'.format(name=file_path))
self.main_window.error_message( self.main_window.error_message(
translate('OpenLP.ServiceManager', 'Error Saving File'), translate('OpenLP.ServiceManager', 'Error Saving File'),
translate('OpenLP.ServiceManager', translate('OpenLP.ServiceManager',