Fixed an issue with orphaned file names sometimes being blank
This commit is contained in:
+3
-1
@@ -937,10 +937,12 @@ class NWProject():
|
|||||||
for oHandle in orphanFiles:
|
for oHandle in orphanFiles:
|
||||||
|
|
||||||
# Look for meta data
|
# Look for meta data
|
||||||
|
oName = ""
|
||||||
if aDoc.openDocument(oHandle, showStatus=False, isOrphan=True):
|
if aDoc.openDocument(oHandle, showStatus=False, isOrphan=True):
|
||||||
oName, oPath = aDoc.getMeta()
|
oName, oPath = aDoc.getMeta()
|
||||||
aDoc.clearDocument()
|
aDoc.clearDocument()
|
||||||
else:
|
|
||||||
|
if oName == "":
|
||||||
nOrph += 1
|
nOrph += 1
|
||||||
oName = "Orphaned File %d" % nOrph
|
oName = "Orphaned File %d" % nOrph
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user