diff --git a/nw/core/project.py b/nw/core/project.py index 4a74e0d0..a7f2cd9b 100644 --- a/nw/core/project.py +++ b/nw/core/project.py @@ -937,10 +937,12 @@ class NWProject(): for oHandle in orphanFiles: # Look for meta data + oName = "" if aDoc.openDocument(oHandle, showStatus=False, isOrphan=True): oName, oPath = aDoc.getMeta() aDoc.clearDocument() - else: + + if oName == "": nOrph += 1 oName = "Orphaned File %d" % nOrph