forked from openlp/openlp
Changed filetype of settings file from .ini to .conf
This commit is contained in:
parent
d927adbe5a
commit
24126e74c8
@ -914,7 +914,7 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
|
|||||||
translate('OpenLP.MainWindow', 'Open File'),
|
translate('OpenLP.MainWindow', 'Open File'),
|
||||||
'',
|
'',
|
||||||
translate('OpenLP.MainWindow',
|
translate('OpenLP.MainWindow',
|
||||||
'OpenLP Export Settings Files (*.ini)')))
|
'OpenLP Export Settings Files (*.conf)')))
|
||||||
if not importFileName:
|
if not importFileName:
|
||||||
return
|
return
|
||||||
settingSections = []
|
settingSections = []
|
||||||
@ -991,12 +991,12 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
|
|||||||
exportFileName = unicode(QtGui.QFileDialog.getSaveFileName(self,
|
exportFileName = unicode(QtGui.QFileDialog.getSaveFileName(self,
|
||||||
translate('OpenLP.MainWindow', 'Export Settings File'), '',
|
translate('OpenLP.MainWindow', 'Export Settings File'), '',
|
||||||
translate('OpenLP.MainWindow',
|
translate('OpenLP.MainWindow',
|
||||||
'OpenLP Export Settings File (*.ini)')))
|
'OpenLP Export Settings File (*.conf)')))
|
||||||
if not exportFileName:
|
if not exportFileName:
|
||||||
return
|
return
|
||||||
# Make sure it's an .ini file.
|
# Make sure it's an .ini file.
|
||||||
if not exportFileName.endswith(u'ini'):
|
if not exportFileName.endswith(u'conf'):
|
||||||
exportFileName = exportFileName + u'.ini'
|
exportFileName = exportFileName + u'.conf'
|
||||||
temp_file = os.path.join(unicode(gettempdir()),
|
temp_file = os.path.join(unicode(gettempdir()),
|
||||||
u'openlp', u'exportIni.tmp')
|
u'openlp', u'exportIni.tmp')
|
||||||
self.saveSettings()
|
self.saveSettings()
|
||||||
|
Loading…
Reference in New Issue
Block a user