Skip to content

Commit

Permalink
Merge pull request #602 from ivany4/fix/master/channel-comparison
Browse files Browse the repository at this point in the history
Fixed channel comparison when one of the value_signals would be None
  • Loading branch information
hhslepicka authored Mar 6, 2020
2 parents 8444ebc + f6db7f2 commit f0cbb4e
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 f0cbb4e

Please sign in to comment.