13
0

emit property change for "collect" on a TransportMaster

This commit is contained in:
Paul Davis 2018-09-23 12:54:34 -04:00
parent ba37a6bd36
commit b9d8f75119

View File

@ -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