From 2b3215eeb535c12f45775c3e162f4dabcabd2c6e Mon Sep 17 00:00:00 2001 From: PaddleStroke Date: Mon, 17 Jun 2024 09:08:10 +0200 Subject: [PATCH] Assembly: InsertLink: Use doc.Label instead of doc.Name because of bug of doc.Name not updating when file is saved. --- src/Mod/Assembly/CommandInsertLink.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Assembly/CommandInsertLink.py b/src/Mod/Assembly/CommandInsertLink.py index d4e6e14f02..6f17dc7304 100644 --- a/src/Mod/Assembly/CommandInsertLink.py +++ b/src/Mod/Assembly/CommandInsertLink.py @@ -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(