forked from openlp/openlp
Fix a bug when importing settings
This commit is contained in:
parent
7086c88c7c
commit
fad0298490
@ -899,6 +899,7 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow, RegistryProperties):
|
|||||||
try:
|
try:
|
||||||
value = import_settings.value(section_key)
|
value = import_settings.value(section_key)
|
||||||
except KeyError:
|
except KeyError:
|
||||||
|
value = None
|
||||||
log.warning('The key "{key}" does not exist (anymore), so it will be skipped.'.format(key=section_key))
|
log.warning('The key "{key}" does not exist (anymore), so it will be skipped.'.format(key=section_key))
|
||||||
if value is not None:
|
if value is not None:
|
||||||
settings.setValue('{key}'.format(key=section_key), value)
|
settings.setValue('{key}'.format(key=section_key), value)
|
||||||
|
Loading…
Reference in New Issue
Block a user