From c33fc62d2fc60dc344a6c8996668150b029a4114 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 2 May 2014 17:53:59 +0200 Subject: [PATCH] Fix lint --- qutebrowser/models/completion.py | 1 + qutebrowser/widgets/_completion.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/qutebrowser/models/completion.py b/qutebrowser/models/completion.py index 111970503..0ab233fbe 100644 --- a/qutebrowser/models/completion.py +++ b/qutebrowser/models/completion.py @@ -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: diff --git a/qutebrowser/widgets/_completion.py b/qutebrowser/widgets/_completion.py index da55d180e..a70888702 100644 --- a/qutebrowser/widgets/_completion.py +++ b/qutebrowser/widgets/_completion.py @@ -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: