Added more checks on actions for project or document being open

This commit is contained in:
Veronica K. B. Olsen committed 2020-11-01 18:39:12 +01:00
1 parent 98be2bd5b4
commit 2a0be718d7
4 files changed
+37 -12

No files matched your search

+4
View File
@@ -781,6 +781,10 @@ class NWProject():
def zipIt(self, doNotify):
"""Create a zip file of the entire project.
"""
if not self.theParent.hasProject:
logger.error("No project open")
return False
logger.info("Backing up project")
self.theParent.setStatus("Backing up project ...")