More config fixes

This commit is contained in:
Florian Bruhin 2017-06-14 19:58:56 +02:00
parent 6a451b37d7
commit cc0e66fe7b
2 changed files with 4 additions and 6 deletions

View File

@ -364,9 +364,9 @@ window.hide_wayland_decoration:
keyhint.blacklist:
type:
name: List
none_ok: true
valtype:
name: String
none_ok: true
default: null
desc: >-
Keychains that shouldn\'t be shown in the keyhint dialog.
@ -1526,7 +1526,7 @@ colors.downloads.start.bg:
desc: Color gradient start for download backgrounds.
colors.downloads.stop.fg:
default: '#0000aa'
default: white
type: QtColor
desc: Color gradient end for download text.

View File

@ -99,10 +99,8 @@ def _get_search_url(txt):
engine, term = _parse_search_term(txt)
assert term
if engine is None:
# FIXME:conf
template = config.val.searchengines.DEFAULT
else:
template = config.get('searchengines', engine)
engine = 'DEFAULT'
template = config.val.searchengines[engine]
url = qurl_from_user_input(template.format(urllib.parse.quote(term)))
qtutils.ensure_valid(url)
return url