diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2018-09-23 12:54:34 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2018-09-23 13:48:19 -0400 |
commit | b9d8f75119fc9a9f7cf4c79a91c9fa350500dd07 (patch) | |
tree | 0fabed5aadd3288e2ffbacee35df42a0b3dbe63b /libs/ardour/transport_master.cc | |
parent | ba37a6bd36d80ca3fe8235f1ac76db982cd3b2e9 (diff) |
emit property change for "collect" on a TransportMaster
Diffstat (limited to 'libs/ardour/transport_master.cc')
-rw-r--r-- | libs/ardour/transport_master.cc | 11 |
1 files changed, 10 insertions, 1 deletions
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 |