Fix config getters

This commit is contained in:
Florian Bruhin 2017-06-13 15:10:34 +02:00
parent b9aa5d0e4e
commit 1f508d9d8f
2 changed files with 4 additions and 4 deletions

View File

@ -63,6 +63,6 @@ class RequestInterceptor(QWebEngineUrlRequestInterceptor):
for header, value in shared.custom_headers():
info.setHttpHeader(header, value)
user_agent = config.val.conent.user_agent
user_agent = config.val.content.user_agent
if user_agent is not None:
info.setHttpHeader(b'User-Agent', user_agent.encode('ascii'))

View File

@ -140,8 +140,8 @@ class TabWidget(QTabWidget):
fields['title'] = fields['title'].replace('&', '&&')
fields['index'] = idx + 1
fmt = config.val.tabs.title_format
fmt_pinned = config.val.tabs.title_format_pinned
fmt = config.val.tabs.title.format
fmt_pinned = config.val.tabs.title.format_pinned
if tab.data.pinned:
title = '' if fmt_pinned is None else fmt_pinned.format(**fields)
@ -714,7 +714,7 @@ class TabBarStyle(QCommonStyle):
elif element == QStyle.CE_TabBarTabLabel:
if not opt.icon.isNull() and layouts.icon.isValid():
self._draw_icon(layouts, opt, p)
alignment = (config.val.tabs.title_alignment |
alignment = (config.val.tabs.title.alignment |
Qt.AlignVCenter | Qt.TextHideMnemonic)
self._style.drawItemText(p, layouts.text, alignment, opt.palette,
opt.state & QStyle.State_Enabled,