From d4a33aba9fe050834f711ea91f1c65680b80eeb6 Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com> Date: Tue, 19 Nov 2019 22:04:28 +0100 Subject: [PATCH] Wrong logic ... --- nw/gui/elements/doceditor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nw/gui/elements/doceditor.py b/nw/gui/elements/doceditor.py index 83706fb5..6fa2294f 100644 --- a/nw/gui/elements/doceditor.py +++ b/nw/gui/elements/doceditor.py @@ -225,7 +225,8 @@ class GuiDocEditor(QTextEdit): # checking. If it is too big, we switch to only check as we type self._checkDocSize(len(theDoc)) spTemp = self.hLight.spellCheck - self.hLight.spellCheck = not self.bigDoc + if self.bigDoc: + self.hLight.spellCheck = False bfTime = time() self.setPlainText(theDoc)