Added more checks on actions for project or document being open
This commit is contained in:
4 files changed
+37
-12
No files matched your search
@@ -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 ...")
|
||||
|
||||
|
||||
Reference in new issue
Block a user