From e61e6b124eb71fe5462bde83a90925d35c418996 Mon Sep 17 00:00:00 2001 From: Michal Siedlaczek Date: Sat, 19 Aug 2017 11:15:15 -0700 Subject: [PATCH] Check if spelling supported by QWebEngineProfile (version 5.8 or higher) --- misc/requirements/requirements-pylint.txt | 1 - qutebrowser/browser/webengine/webenginesettings.py | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/requirements/requirements-pylint.txt b/misc/requirements/requirements-pylint.txt index 777d47fdd..7463184a4 100644 --- a/misc/requirements/requirements-pylint.txt +++ b/misc/requirements/requirements-pylint.txt @@ -4,7 +4,6 @@ astroid==1.5.3 certifi==2017.7.27.1 chardet==3.0.4 github3.py==0.9.6 -idna==2.6 isort==4.2.15 lazy-object-proxy==1.3.1 mccabe==0.6.1 diff --git a/qutebrowser/browser/webengine/webenginesettings.py b/qutebrowser/browser/webengine/webenginesettings.py index 8130ecbde..1ee017660 100644 --- a/qutebrowser/browser/webengine/webenginesettings.py +++ b/qutebrowser/browser/webengine/webenginesettings.py @@ -133,7 +133,8 @@ class DictionaryLanguageSetter(DefaultProfileSetter): """Sets paths to dictionary files based on language codes.""" def __init__(self): - super().__init__('setSpellCheckLanguages') + super().__init__('setSpellCheckLanguages', default=[], + min_version='5.8') def _set(self, value, settings=None): if settings is not None: