diff --git a/novelwriter/core/document.py b/novelwriter/core/document.py index de81e7ef..769892a7 100644 --- a/novelwriter/core/document.py +++ b/novelwriter/core/document.py @@ -183,8 +183,7 @@ class NWDocument: # Re-read the document on disk to check if it has changed prevHash = self._lastHash self.readDocument() - print(f"'{self._lastHash}', '{prevHash}'") - if self._lastHash != prevHash and not forceWrite: + if prevHash and self._lastHash != prevHash and not forceWrite: logger.error("File has been altered on disk since opened") self._hashError = True return False