From b9d8f75119fc9a9f7cf4c79a91c9fa350500dd07 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sun, 23 Sep 2018 12:54:34 -0400 Subject: [PATCH] emit property change for "collect" on a TransportMaster --- libs/ardour/transport_master.cc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/libs/ardour/transport_master.cc b/libs/ardour/transport_master.cc index 1bd1649500..4dec88272a 100644 --- a/libs/ardour/transport_master.cc +++ b/libs/ardour/transport_master.cc @@ -170,7 +170,16 @@ TransportMaster::check_collect() void TransportMaster::set_collect (bool yn) { - _pending_collect = yn; + /* theoretical race condition */ + + if (_connected) { + _pending_collect = yn; + } else { + if (_collect != yn) { + _pending_collect = _collect = yn; + PropertyChanged (Properties::collect); + } + } } void