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