New test for NWDoc class

This commit is contained in:
Veronica K. B. Olsen
2020-12-01 22:19:18 +01:00
parent 2018d44ba8
commit 8cc6fa6030
6 changed files with 218 additions and 93 deletions
+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