summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorcallum <none@none>2010-10-11 16:37:27 -0700
committercallum <none@none>2010-10-11 16:37:27 -0700
commit5a230f5eca6ba30eb53a2083cfd17769f6aee849 (patch)
tree7a5fc2cdd81119b501f2e42189b9c4a74d67f167 /indra/newview
parent34ca69949fa1bc67caa8cd0f8ed85d924303567a (diff)
parentb10744dbee7ffa64180f5558cac874e126045fc8 (diff)
Merge with head
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llbottomtray.cpp2
-rw-r--r--indra/newview/llfloatercamera.cpp3
2 files changed, 2 insertions, 3 deletions
diff --git a/indra/newview/llbottomtray.cpp b/indra/newview/llbottomtray.cpp
index fd11045f56..758bc7be64 100644
--- a/indra/newview/llbottomtray.cpp
+++ b/indra/newview/llbottomtray.cpp
@@ -220,6 +220,8 @@ LLBottomTray::LLBottomTray(const LLSD&)
buildFromFile("panel_bottomtray.xml");
+ LLUICtrl::CommitCallbackRegistry::defaultRegistrar().add("CameraPresets.ChangeView", boost::bind(&LLFloaterCamera::onClickCameraItem, _2));
+
//this is to fix a crash that occurs because LLBottomTray is a singleton
//and thus is deleted at the end of the viewers lifetime, but to be cleanly
//destroyed LLBottomTray requires some subsystems that are long gone
diff --git a/indra/newview/llfloatercamera.cpp b/indra/newview/llfloatercamera.cpp
index be65396b0f..620e100bdf 100644
--- a/indra/newview/llfloatercamera.cpp
+++ b/indra/newview/llfloatercamera.cpp
@@ -340,9 +340,6 @@ LLFloaterCamera::LLFloaterCamera(const LLSD& val)
mCurrMode(CAMERA_CTRL_MODE_PAN),
mPrevMode(CAMERA_CTRL_MODE_PAN)
{
- LLUICtrl::CommitCallbackRegistry::ScopedRegistrar registrar;
- registrar.add("CameraPresets.ChangeView", boost::bind(&LLFloaterCamera::onClickCameraItem, _2));
-
LLHints::registerHintTarget("view_popup", LLView::getHandle());
}