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:
Shyotl
2011-08-16 02:39:32 -05:00
parent 20ef149dcb
commit ca99f5d2e5

View File

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