Added code to always create a filename.INI file.

This commit is contained in:
Stevan Pettit 2011-08-21 10:05:24 -04:00
parent 9f284d9ab2
commit 79ab8cc1c0
1 changed files with 4 additions and 1 deletions

View File

@ -977,7 +977,7 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
QtGui.QMessageBox.Ok))
self.settingsImported = True
self.cleanUp()
sys.exit()
sys.exit(0)
def onSettingsExportItemClicked(self, exportFileName=None):
"""
@ -990,6 +990,9 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
'OpenLP Export Settings File (*.ini)')))
if not exportFileName:
return
# Make sure it's an .ini file.
if not exportFileName.endswith(u'ini'):
exportFileName =+ u'.ini'
self.saveSettings()
headerSection = u'SettingsExport'
settingSections = []