diff --git a/nw/gui/doceditor.py b/nw/gui/doceditor.py index 09792041..4546d717 100644 --- a/nw/gui/doceditor.py +++ b/nw/gui/doceditor.py @@ -1004,6 +1004,9 @@ class GuiDocEditor(QTextEdit): """Decide whether to run the word counter, or not due to inactivity. """ + if self.theHandle is None: + return + if self.wCounter.isRunning(): logger.verbose("Word counter is busy") return