Draft: Prevent user to remove core properties
This commit is contained in:
committed by
Kacper Donat
parent
4a61a49456
commit
19c125e898
@@ -41,7 +41,7 @@ class Block(DraftObject):
|
||||
|
||||
_tip = QT_TRANSLATE_NOOP("App::Property",
|
||||
"The components of this block")
|
||||
obj.addProperty("App::PropertyLinkList","Components", "Draft", _tip)
|
||||
obj.addProperty("App::PropertyLinkList","Components", "Draft", _tip, locked=True)
|
||||
|
||||
def onDocumentRestored(self, obj):
|
||||
super().onDocumentRestored(obj)
|
||||
|
||||
Reference in New Issue
Block a user