Assembly: InsertLink: Use doc.Label instead of doc.Name because of bug of doc.Name not updating when file is saved.
This commit is contained in:
committed by
Chris Hennes
parent
4454275146
commit
4a11652263
@@ -151,7 +151,7 @@ class TaskAssemblyInsertLink(QtCore.QObject):
|
||||
for doc in docList:
|
||||
# Create a new tree item for the document
|
||||
docItem = QtGui.QTreeWidgetItem()
|
||||
docItem.setText(0, doc.Name + ".FCStd")
|
||||
docItem.setText(0, doc.Label + ".FCStd")
|
||||
docItem.setIcon(0, QIcon.fromTheme("add", QIcon(":/icons/Document.svg")))
|
||||
|
||||
if not any(
|
||||
|
||||
Reference in New Issue
Block a user