From 0ffb6eee373bf15bb037da2931713541b16a5370 Mon Sep 17 00:00:00 2001 From: Veronica Berglyd Olsen <1619840+vkbo@users.noreply.github.com> Date: Thu, 13 Apr 2023 18:11:59 +0200 Subject: [PATCH] Allow clearing the spell check highlighting also on big docs --- novelwriter/gui/doceditor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/novelwriter/gui/doceditor.py b/novelwriter/gui/doceditor.py index 0518c277..90a671ce 100644 --- a/novelwriter/gui/doceditor.py +++ b/novelwriter/gui/doceditor.py @@ -753,7 +753,8 @@ class GuiDocEditor(QTextEdit): self.mainGui.mainMenu.setSpellCheck(theMode) self.theProject.data.setSpellCheck(theMode) self.highLight.setSpellCheck(theMode) - if not self._bigDoc: + if not self._bigDoc or theMode is False: + # We don't run the spell checker automatically on big docs self.spellCheckDocument() logger.debug("Spell check is set to '%s'", str(theMode))