From 83e0a365ae8335acab1cee96295bb3bf87989717 Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com> Date: Thu, 14 May 2020 21:21:00 +0200 Subject: [PATCH] Fixed an issue with orphaned file names sometimes being blank --- nw/core/project.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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