개정판 654f3ac2
issue #563: fix attribute infinite loop
Change-Id: I4b29ab2b3ae32c1d259fe4c8f367bd530e455201
DTI_PID/DTI_PID/LineNoTracer.py | ||
---|---|---|
502 | 502 |
App.mainWnd().addMessage.emit(MessageType.Error, message) |
503 | 503 |
|
504 | 504 |
""" try to connect label to valve """ |
505 |
labels = [symbol for symbol in symbols if type(symbol) is QEngineeringInstrumentItem and not symbol.has_connection]
|
|
505 |
labels = [symbol for symbol in symbols if type(symbol) is QEngineeringInstrumentItem and not symbol.connectors]
|
|
506 | 506 |
valves = [symbol for symbol in symbols if symbol.type == 'Specialty Components' or symbol.type == 'In-Line' or symbol.type == 'Relief Devices'] |
507 | 507 |
for label in labels: |
508 | 508 |
label.connectAttribute(valves, clear=False) |
내보내기 Unified diff