emit property change for "collect" on a TransportMaster
This commit is contained in:
parent
ba37a6bd36
commit
b9d8f75119
@ -170,7 +170,16 @@ TransportMaster::check_collect()
|
|||||||
void
|
void
|
||||||
TransportMaster::set_collect (bool yn)
|
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
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user