diff --git a/libs/ardour/ardour/triggerbox.h b/libs/ardour/ardour/triggerbox.h index aaffc821ab..6f280af1d0 100644 --- a/libs/ardour/ardour/triggerbox.h +++ b/libs/ardour/ardour/triggerbox.h @@ -1112,6 +1112,10 @@ class TriggerReference uint32_t slot() const { return _slot; } std::shared_ptr box() const { return weak_box.lock(); } + bool operator== (TriggerReference const & other) { + return _slot == other._slot && box() == other.box(); + } + private: std::weak_ptr weak_box; uint32_t _slot;