개정판 5483ff95
issue #000: manual attr setting with auto freeze
Change-Id: I1689a1253921d226e918226a14dd5cd2ffac9393
DTI_PID/DTI_PID/Commands/SelectAttributeCommand.py | ||
---|---|---|
106 | 106 |
for key in self._item.attrs.keys(): |
107 | 107 |
if key.Attribute == self._attr.Attribute: |
108 | 108 |
key.AssocItem = item |
109 |
# auto freeze when manually attribute setting |
|
110 |
self._item.getAttributes() # attr rebinding so old key is not valid |
|
111 |
for neyKey in self._item.attrs.keys(): |
|
112 |
if neyKey.Attribute == self._attr.Attribute: |
|
113 |
neyKey.Freeze = True |
|
114 |
break |
|
109 | 115 |
break |
110 | 116 |
if issubclass(type(item), QEngineeringTextItem): item.owner = self._item |
111 | 117 |
self.onSuccess.emit() |
내보내기 Unified diff