개정판 f232adfd
issue #000: fix itemremoved
Change-Id: Iadfd170022a9f0a3480c903beab3245facf3daf8
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
1622 | 1622 |
for match in matches: |
1623 | 1623 |
for assoc in match.associations(): |
1624 | 1624 |
if item is assoc: |
1625 |
match.remove_assoc_item(item) |
|
1626 | 1625 |
for attr in match.attrs.keys(): |
1627 | 1626 |
if str(item.uid) == str(attr.AssocItem.uid): |
1628 | 1627 |
attr.AssocItem = None |
1629 | 1628 |
match.attrs[attr] = '' |
1630 | 1629 |
done = True |
1631 | 1630 |
break |
1631 |
match.remove_assoc_item(item) |
|
1632 | 1632 |
break |
1633 | 1633 |
if done: break |
1634 | 1634 |
|
내보내기 Unified diff