Skip to content

Commit

Permalink
Fixed channel comparison when one of the value_signals would be None
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Sinkarenko committed Mar 6, 2020
1 parent 8444ebc commit f6db7f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pydm/widgets/channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def __eq__(self, other):
lower_ctrl_slot_matched = self.lower_ctrl_limit_slot == other.lower_ctrl_limit_slot
write_access_slot_matched = self.write_access_slot == other.write_access_slot

value_signal_matched = True
value_signal_matched = self.value_signal is None and other.value_signal is None
if self.value_signal and other.value_signal:
value_signal_matched = self.value_signal.signal == other.value_signal.signal

Expand Down

0 comments on commit f6db7f2

Please sign in to comment.