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