Only run word counter when a document is open
This commit is contained in:
@@ -1004,6 +1004,9 @@ class GuiDocEditor(QTextEdit):
|
|||||||
"""Decide whether to run the word counter, or not due to
|
"""Decide whether to run the word counter, or not due to
|
||||||
inactivity.
|
inactivity.
|
||||||
"""
|
"""
|
||||||
|
if self.theHandle is None:
|
||||||
|
return
|
||||||
|
|
||||||
if self.wCounter.isRunning():
|
if self.wCounter.isRunning():
|
||||||
logger.verbose("Word counter is busy")
|
logger.verbose("Word counter is busy")
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user