Adding cached-control callbacks to the front of the controlgroups signal. It was possible for cachedcontrols to register themselves before settings_setup_listeners, etc, register their own callbacks. If those callbacks ever referenced the setting via cached control then the value in the cachedcontrol would be stale.
This commit is contained in:
@@ -407,7 +407,8 @@ private:
|
||||
// Add a listener to the controls signal...
|
||||
// and store the connection...
|
||||
mConnection = controlp->getSignal()->connect(
|
||||
boost::bind(&LLControlCache<T>::handleValueChange, this, _2)
|
||||
boost::bind(&LLControlCache<T>::handleValueChange, this, _2),
|
||||
boost::signals2::at_front //make sure cachedctrl slots are inserted before anything else.
|
||||
);
|
||||
mType = controlp->type();
|
||||
mControl = controlp;
|
||||
|
||||
Reference in New Issue
Block a user