Local save works

This commit is contained in:
Tim Bentley 2012-09-15 06:57:03 +01:00
parent a3b2fcd113
commit 795d11849d

View File

@ -425,7 +425,7 @@ class ServiceManager(QtGui.QWidget):
SettingsManager.get_last_dir( SettingsManager.get_last_dir(
self.mainwindow.serviceManagerSettingsSection), self.mainwindow.serviceManagerSettingsSection),
translate('OpenLP.ServiceManager', translate('OpenLP.ServiceManager',
'OpenLP Service Files (*.osz *.ozl)'))) 'OpenLP Service Files (*.osz *.oszl)')))
if not fileName: if not fileName:
return False return False
else: else:
@ -712,7 +712,7 @@ class ServiceManager(QtGui.QWidget):
ext = os.path.splitext(fileName)[1] ext = os.path.splitext(fileName)[1]
fileName.replace(ext, u'.osz') fileName.replace(ext, u'.osz')
self.setFileName(fileName) self.setFileName(fileName)
if suffix == u'.oszl': if fileName.endswith(u'.oszl'):
return self.saveLocalFile() return self.saveLocalFile()
else: else:
return self.saveFile() return self.saveFile()