From ca99f5d2e50d627b98e7c4a077d147b51ae51d1c Mon Sep 17 00:00:00 2001 From: Shyotl Date: Tue, 16 Aug 2011 02:39:32 -0500 Subject: [PATCH] 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. --- indra/llxml/llcontrol.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/indra/llxml/llcontrol.h b/indra/llxml/llcontrol.h index 806660a38..c750351ed 100644 --- a/indra/llxml/llcontrol.h +++ b/indra/llxml/llcontrol.h @@ -407,7 +407,8 @@ private: // Add a listener to the controls signal... // and store the connection... mConnection = controlp->getSignal()->connect( - boost::bind(&LLControlCache::handleValueChange, this, _2) + boost::bind(&LLControlCache::handleValueChange, this, _2), + boost::signals2::at_front //make sure cachedctrl slots are inserted before anything else. ); mType = controlp->type(); mControl = controlp;