Added more checks on actions for project or document being open

This commit is contained in:
Veronica K. B. Olsen
2020-11-01 18:39:12 +01:00
parent 98be2bd5b4
commit 2a0be718d7
4 changed files with 37 additions and 12 deletions
+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 ...")