forked from openlp/openlp
Local save works
This commit is contained in:
parent
a3b2fcd113
commit
795d11849d
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user