forked from openlp/openlp
Fixed problems with "shortcuts" section of export/import file
This commit is contained in:
parent
d85128829e
commit
50a5b98f8c
@ -540,6 +540,7 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
|
|||||||
self.uiSettingsSection = u'user interface'
|
self.uiSettingsSection = u'user interface'
|
||||||
self.generalSettingsSection = u'general'
|
self.generalSettingsSection = u'general'
|
||||||
self.advancedlSettingsSection = u'advanced'
|
self.advancedlSettingsSection = u'advanced'
|
||||||
|
self.shortcutsSettingsSection = u'shortcuts'
|
||||||
self.servicemanagerSettingsSection = u'servicemanager'
|
self.servicemanagerSettingsSection = u'servicemanager'
|
||||||
self.songsSettingsSection = u'songs'
|
self.songsSettingsSection = u'songs'
|
||||||
self.themesSettingsSection = u'themes'
|
self.themesSettingsSection = u'themes'
|
||||||
@ -925,6 +926,7 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
|
|||||||
settingSections.extend([self.generalSettingsSection])
|
settingSections.extend([self.generalSettingsSection])
|
||||||
settingSections.extend([self.advancedlSettingsSection])
|
settingSections.extend([self.advancedlSettingsSection])
|
||||||
settingSections.extend([self.uiSettingsSection])
|
settingSections.extend([self.uiSettingsSection])
|
||||||
|
settingSections.extend([self.shortcutsSettingsSection])
|
||||||
settingSections.extend([self.servicemanagerSettingsSection])
|
settingSections.extend([self.servicemanagerSettingsSection])
|
||||||
settingSections.extend([self.themesSettingsSection])
|
settingSections.extend([self.themesSettingsSection])
|
||||||
settingSections.extend([self.displayTagsSection])
|
settingSections.extend([self.displayTagsSection])
|
||||||
@ -1008,6 +1010,7 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
|
|||||||
settingSections.extend([self.generalSettingsSection])
|
settingSections.extend([self.generalSettingsSection])
|
||||||
settingSections.extend([self.advancedlSettingsSection])
|
settingSections.extend([self.advancedlSettingsSection])
|
||||||
settingSections.extend([self.uiSettingsSection])
|
settingSections.extend([self.uiSettingsSection])
|
||||||
|
settingSections.extend([self.shortcutsSettingsSection])
|
||||||
settingSections.extend([self.servicemanagerSettingsSection])
|
settingSections.extend([self.servicemanagerSettingsSection])
|
||||||
settingSections.extend([self.themesSettingsSection])
|
settingSections.extend([self.themesSettingsSection])
|
||||||
settingSections.extend([self.displayTagsSection])
|
settingSections.extend([self.displayTagsSection])
|
||||||
@ -1055,6 +1058,8 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
|
|||||||
exportIni = open(exportFileName, u'w')
|
exportIni = open(exportFileName, u'w')
|
||||||
for fileRecord in tempIni:
|
for fileRecord in tempIni:
|
||||||
fileRecord = fileRecord.replace(u'%20', u' ')
|
fileRecord = fileRecord.replace(u'%20', u' ')
|
||||||
|
# Get rid of any invalid entries.
|
||||||
|
if not fileRecord.count(u'@Invalid()'):
|
||||||
exportIni.write(fileRecord)
|
exportIni.write(fileRecord)
|
||||||
tempIni.close()
|
tempIni.close()
|
||||||
exportIni.close()
|
exportIni.close()
|
||||||
|
Loading…
Reference in New Issue
Block a user