diff options
author | Oz Linden <oz@lindenlab.com> | 2013-12-17 13:05:12 -0500 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2013-12-17 13:05:12 -0500 |
commit | 0e346960bb45900cf1d9472834687c9b7b928e1f (patch) | |
tree | a469fb786cc0a7bdffe1f3340dd5786e0f071e79 | |
parent | fcc885d4fc5ef63dad33e89a9324edc39d466d37 (diff) |
add LLAgent::removeRegionChangedCallback
-rwxr-xr-x | indra/newview/llagent.cpp | 4 | ||||
-rwxr-xr-x | indra/newview/llagent.h | 1 |
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; |