summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2013-12-17 13:05:12 -0500
committerOz Linden <oz@lindenlab.com>2013-12-17 13:05:12 -0500
commit0e346960bb45900cf1d9472834687c9b7b928e1f (patch)
treea469fb786cc0a7bdffe1f3340dd5786e0f071e79
parentfcc885d4fc5ef63dad33e89a9324edc39d466d37 (diff)
add LLAgent::removeRegionChangedCallback
-rwxr-xr-xindra/newview/llagent.cpp4
-rwxr-xr-xindra/newview/llagent.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/llagent.cpp b/indra/newview/llagent.cpp
index 6ee8f26b9f..b1cd68140e 100755
--- a/indra/newview/llagent.cpp
+++ b/indra/newview/llagent.cpp
@@ -981,6 +981,10 @@ boost::signals2::connection LLAgent::addRegionChangedCallback(region_changed_cal
return mRegionChangedSignal.connect(cb);
}
+void LLAgent::removeRegionChangedCallback(boost::signals2::connection callback)
+{
+ mRegionChangedSignal.disconnect(callback);
+}
//-----------------------------------------------------------------------------
// inPrelude()
diff --git a/indra/newview/llagent.h b/indra/newview/llagent.h
index 0662be897a..bc003387de 100755
--- a/indra/newview/llagent.h
+++ b/indra/newview/llagent.h
@@ -273,6 +273,7 @@ private:
*/
typedef boost::function<void()> region_changed_callback_t;
boost::signals2::connection addRegionChangedCallback(region_changed_callback_t);
+ void removeRegionChangedCallback(boost::signals2::connection callback);
private:
LLViewerRegion *mRegionp;