Save more meta data to the top of files

This commit is contained in:
Veronica K. B. Olsen
2020-06-12 17:08:18 +02:00
parent 8e38637250
commit 3fc17c5439
2 changed files with 34 additions and 6 deletions
+3 -3
View File
@@ -1075,7 +1075,7 @@ class NWProject():
# Look for meta data
oName = ""
if aDoc.openDocument(oHandle, showStatus=False, isOrphan=True):
oName, oPath = aDoc.getMeta()
oName, oPath, oClass, oLayout = aDoc.getMeta()
if oName == "":
nOrph += 1
@@ -1084,8 +1084,8 @@ class NWProject():
orphItem = NWItem(self)
orphItem.setName(oName)
orphItem.setType(nwItemType.FILE)
orphItem.setClass(nwItemClass.NO_CLASS)
orphItem.setLayout(nwItemLayout.NO_LAYOUT)
orphItem.setClass(oClass)
orphItem.setLayout(oLayout)
self.projTree.append(oHandle, None, orphItem)
return