From 826f4789b555337eb86444240d4e2ddd60890c0d Mon Sep 17 00:00:00 2001 From: Roy-043 <70520633+Roy-043@users.noreply.github.com> Date: Wed, 18 Jun 2025 19:21:42 +0200 Subject: [PATCH] BIM: fix ArchProfile update issues Fixes 21001 Fixes 21187 --- src/Mod/BIM/ArchProfile.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Mod/BIM/ArchProfile.py b/src/Mod/BIM/ArchProfile.py index 6a90217d4b..51b976797d 100644 --- a/src/Mod/BIM/ArchProfile.py +++ b/src/Mod/BIM/ArchProfile.py @@ -112,12 +112,12 @@ class _Profile(Draft._DraftObject): '''Remove all Profile properties''' - obj.removeProperty("Width") - obj.removeProperty("Height") - obj.removeProperty("WebThickness") - obj.removeProperty("FlangeThickness") - obj.removeProperty("OutDiameter") - obj.removeProperty("Thickness") + for prop in [ + "Width", "Height", "WebThickness", "FlangeThickness","OutDiameter", "Thickness" + ]: + if hasattr(obj, prop): + obj.setPropertyStatus(prop, "-LockDynamic") + obj.removeProperty(prop) class _ProfileC(_Profile): @@ -384,7 +384,7 @@ class ProfileTaskPanel: layout.addWidget(self.comboCategory) self.comboProfile = QtGui.QComboBox(self.form) layout.addWidget(self.comboProfile) - QtCore.QObject.connect(self.comboCategory, QtCore.SIGNAL("currentIndexChanged(QString)"), self.changeCategory) + QtCore.QObject.connect(self.comboCategory, QtCore.SIGNAL("currentTextChanged(QString)"), self.changeCategory) QtCore.QObject.connect(self.comboProfile, QtCore.SIGNAL("currentIndexChanged(int)"), self.changeProfile) # Read preset profiles and add relevant ones self.categories = []