Avoid shadowing 'model'.
This commit is contained in:
parent
a4f47150b4
commit
307fe6b109
@ -67,12 +67,12 @@ def _init_setting_completions():
|
|||||||
_instances[usertypes.Completion.option] = {}
|
_instances[usertypes.Completion.option] = {}
|
||||||
_instances[usertypes.Completion.value] = {}
|
_instances[usertypes.Completion.value] = {}
|
||||||
for sectname in configdata.DATA:
|
for sectname in configdata.DATA:
|
||||||
model = configmodel.SettingOptionCompletionModel(sectname)
|
opt_model = configmodel.SettingOptionCompletionModel(sectname)
|
||||||
_instances[usertypes.Completion.option][sectname] = model
|
_instances[usertypes.Completion.option][sectname] = opt_model
|
||||||
_instances[usertypes.Completion.value][sectname] = {}
|
_instances[usertypes.Completion.value][sectname] = {}
|
||||||
for opt in configdata.DATA[sectname]:
|
for opt in configdata.DATA[sectname]:
|
||||||
model = configmodel.SettingValueCompletionModel(sectname, opt)
|
val_model = configmodel.SettingValueCompletionModel(sectname, opt)
|
||||||
_instances[usertypes.Completion.value][sectname][opt] = model
|
_instances[usertypes.Completion.value][sectname][opt] = val_model
|
||||||
|
|
||||||
|
|
||||||
@pyqtSlot()
|
@pyqtSlot()
|
||||||
|
Loading…
Reference in New Issue
Block a user