All constants should be upper case

This commit is contained in:
Veronica K. B. Olsen
2020-10-27 20:36:04 +01:00
parent 8e95728e20
commit e2ab9ed6cf
9 changed files with 27 additions and 27 deletions
+1 -1
View File
@@ -155,7 +155,7 @@ class GuiDocSplit(QDialog):
# Check that another folder can be created
parTree = self.theProject.projTree.getItemPath(srcItem.itemParent)
if len(parTree) >= nwConst.maxDepth - 1:
if len(parTree) >= nwConst.MAX_DEPTH - 1:
self.theParent.makeAlert((
"Cannot add new folder for the document split. "
"Maximum folder depth has been reached. "