New test for NWDoc class

This commit is contained in:
Veronica K. B. Olsen committed 2020-12-01 22:19:18 +01:00
1 parent 2018d44ba8
commit 8cc6fa6030
6 files changed
+218 -93

No files matched your search

+2 -1
View File
@@ -168,7 +168,8 @@ class NWDoc():
os.unlink(docPath)
os.rename(docTemp, docPath)
self.theParent.setStatus("Saved Document: %s" % self._theItem.itemName)
if self._theItem is not None:
self.theParent.setStatus("Saved Document: %s" % self._theItem.itemName)
return True