forked from openlp/openlp
Added code to always create a filename.INI file.
This commit is contained in:
parent
9f284d9ab2
commit
79ab8cc1c0
@ -977,7 +977,7 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
|
|||||||
QtGui.QMessageBox.Ok))
|
QtGui.QMessageBox.Ok))
|
||||||
self.settingsImported = True
|
self.settingsImported = True
|
||||||
self.cleanUp()
|
self.cleanUp()
|
||||||
sys.exit()
|
sys.exit(0)
|
||||||
|
|
||||||
def onSettingsExportItemClicked(self, exportFileName=None):
|
def onSettingsExportItemClicked(self, exportFileName=None):
|
||||||
"""
|
"""
|
||||||
@ -990,6 +990,9 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
|
|||||||
'OpenLP Export Settings File (*.ini)')))
|
'OpenLP Export Settings File (*.ini)')))
|
||||||
if not exportFileName:
|
if not exportFileName:
|
||||||
return
|
return
|
||||||
|
# Make sure it's an .ini file.
|
||||||
|
if not exportFileName.endswith(u'ini'):
|
||||||
|
exportFileName =+ u'.ini'
|
||||||
self.saveSettings()
|
self.saveSettings()
|
||||||
headerSection = u'SettingsExport'
|
headerSection = u'SettingsExport'
|
||||||
settingSections = []
|
settingSections = []
|
||||||
|
Loading…
Reference in New Issue
Block a user