Fix on_config_changed for tabbar (renamed to tabs)

This commit is contained in:
Florian Bruhin 2014-09-12 20:15:20 +02:00
parent 052fa8e277
commit 0c9d7723c8
2 changed files with 2 additions and 2 deletions

View File

@ -411,7 +411,7 @@ class TabbedBrowser(tabwidget.TabWidget):
super().on_config_changed(section, option)
for tab in self._tabs:
tab.on_config_changed(section, option)
if (section, option) == ('tabbar', 'show-favicons'):
if (section, option) == ('tabs', 'show-favicons'):
show = config.get('tabs', 'show-favicons')
for i, tab in enumerate(self.widgets()):
if show:

View File

@ -83,7 +83,7 @@ class TabWidget(QTabWidget):
def on_config_changed(self, section, option):
"""Update attributes when config changed."""
self.tabBar().on_config_changed(section, option)
if section == 'tabbar':
if section == 'tabs':
self._init_config()