Fixed an issue with adding empty orphaned files to the project
This commit is contained in:
@@ -23,6 +23,7 @@ __pycache__
|
||||
|
||||
# PyTest
|
||||
/prof/
|
||||
/htmlcov/
|
||||
/tests/temp
|
||||
/tests/lipsum/cache
|
||||
/tests/lipsum/meta
|
||||
|
||||
+4
-2
@@ -1311,8 +1311,10 @@ class NWProject():
|
||||
|
||||
# Look for meta data
|
||||
oName = ""
|
||||
if aDoc.openDocument(oHandle, showStatus=False, isOrphan=True):
|
||||
oName, oPath, oClass, oLayout = aDoc.getMeta()
|
||||
oClass = None
|
||||
oLayout = None
|
||||
if aDoc.openDocument(oHandle, showStatus=False, isOrphan=True) is not None:
|
||||
oName, _, oClass, oLayout = aDoc.getMeta()
|
||||
|
||||
if oName == "":
|
||||
nOrph += 1
|
||||
|
||||
Reference in New Issue
Block a user