This commit is contained in:
Florian Bruhin 2014-05-02 17:53:59 +02:00
parent efc613811f
commit c33fc62d2f
2 changed files with 3 additions and 1 deletions

View File

@ -69,6 +69,7 @@ class SettingOptionCompletionModel(BaseCompletionModel):
@pyqtSlot(str, str)
def on_config_changed(self, section, option):
"""Update misc column when config changed."""
if section != self._section:
return
try:

View File

@ -147,7 +147,8 @@ class CompletionView(QTreeView):
for sectname, sect in configdata.DATA.items():
optmodel = CFM(SettingOptionCompletionModel(sectname, self))
self._models['option'][sectname] = optmodel
config.instance.changed.connect(optmodel.srcmodel.on_config_changed)
config.instance.changed.connect(
optmodel.srcmodel.on_config_changed)
if hasattr(sect, 'valtype'):
# Same type for all values (ValueList)
try: