forked from openlp/openlp
Fix service save location (Bug #605649)
This commit is contained in:
parent
afd28025a5
commit
c15fb864ec
@ -575,16 +575,16 @@ class ServiceManager(QtGui.QWidget):
|
|||||||
SettingsManager.get_last_dir(self.parent.serviceSettingsSection),
|
SettingsManager.get_last_dir(self.parent.serviceSettingsSection),
|
||||||
translate('ServiceManager', 'OpenLP Service Files (*.osz)'))
|
translate('ServiceManager', 'OpenLP Service Files (*.osz)'))
|
||||||
else:
|
else:
|
||||||
filename = SettingsManager.get_last_dir(
|
filename = os.path.join(SettingsManager.get_last_dir(
|
||||||
self.parent.serviceSettingsSection)
|
self.parent.serviceSettingsSection), self.serviceName)
|
||||||
if filename:
|
if filename:
|
||||||
|
filename = QtCore.QDir.toNativeSeparators(filename)
|
||||||
splittedFile = filename.split(u'.')
|
splittedFile = filename.split(u'.')
|
||||||
if splittedFile[-1] != u'osz':
|
if splittedFile[-1] != u'osz':
|
||||||
filename = filename + u'.osz'
|
filename = filename + u'.osz'
|
||||||
filename = unicode(filename)
|
filename = unicode(filename)
|
||||||
self.isNew = False
|
self.isNew = False
|
||||||
SettingsManager.set_last_dir(
|
SettingsManager.set_last_dir(self.parent.serviceSettingsSection,
|
||||||
self.parent.serviceSettingsSection,
|
|
||||||
os.path.split(filename)[0])
|
os.path.split(filename)[0])
|
||||||
service = []
|
service = []
|
||||||
servicefile = filename + u'.osd'
|
servicefile = filename + u'.osd'
|
||||||
|
Loading…
Reference in New Issue
Block a user