Use setData of model instead of item
This commit is contained in:
parent
e54a649337
commit
0fc789509f
@ -74,7 +74,7 @@ class SettingOptionCompletionModel(BaseCompletionModel):
|
||||
# changed before init
|
||||
return
|
||||
val = config.get(section, option)
|
||||
item.setData(val, Qt.DisplayRole)
|
||||
self.setData(item.index(), val, Qt.DisplayRole)
|
||||
|
||||
|
||||
class SettingValueCompletionModel(BaseCompletionModel):
|
||||
|
Loading…
Reference in New Issue
Block a user