Disable spellcheck when it's unneeded.

Fixes #3753
This commit is contained in:
Florian Bruhin 2018-05-03 17:58:56 +02:00
parent f528a5dd21
commit adf2f9860d
2 changed files with 4 additions and 1 deletions

View File

@ -92,6 +92,9 @@ Fixed
- Searching via `/` or `?` now doesn't handle any characters in a special way.
- Fixed crash when trying to retry some failed downloads on QtWebEngine.
- An invalid spellcheck dictionary filename now doesn't crash anymore.
- When no spellcheck dictionaries are configured, it's now disabled internally.
This works around an issue with entering special characters on Facebook
messenger.
v1.2.1
------

View File

@ -179,7 +179,6 @@ class ProfileSetter:
self._profile.settings().setAttribute(
QWebEngineSettings.FullScreenSupportEnabled, True)
if qtutils.version_check('5.8'):
self._profile.setSpellCheckEnabled(True)
self.set_dictionary_language()
def set_http_headers(self):
@ -230,6 +229,7 @@ class ProfileSetter:
log.config.debug("Found dicts: {}".format(filenames))
self._profile.setSpellCheckLanguages(filenames)
self._profile.setSpellCheckEnabled(bool(filenames))
def _update_settings(option):