From eea440b4542747e66c4e16037436acff90d48e22 Mon Sep 17 00:00:00 2001 From: maxim_productengine Date: Fri, 19 Apr 2019 16:07:41 +0300 Subject: SL-10989 Toggle checkbox when clicking 'Avatars on other parcels can see and chat...' label --- indra/newview/llfloaterland.cpp | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'indra/newview/llfloaterland.cpp') diff --git a/indra/newview/llfloaterland.cpp b/indra/newview/llfloaterland.cpp index 7f2e8fd82a..8fbc7b3b64 100644 --- a/indra/newview/llfloaterland.cpp +++ b/indra/newview/llfloaterland.cpp @@ -1923,6 +1923,13 @@ BOOL LLPanelLandOptions::postBuild() mSeeAvatarsCtrl = getChild( "SeeAvatarsCheck"); childSetCommitCallback("SeeAvatarsCheck", onCommitAny, this); + if (hasChild("allow_see_label", TRUE)) + { + getChild("allow_see_label")->setShowCursorHand(false); + getChild("allow_see_label")->setSoundFlags(LLView::MOUSE_UP); + getChild("allow_see_label")->setClickedCallback(boost::bind(&toggleSeeAvatars, this)); + } + mCheckShowDirectory = getChild( "ShowDirectoryCheck"); childSetCommitCallback("ShowDirectoryCheck", onCommitAny, this); @@ -2364,7 +2371,16 @@ void LLPanelLandOptions::onClickClear(void* userdata) self->refresh(); } - +void LLPanelLandOptions::toggleSeeAvatars(void* userdata) +{ + LLPanelLandOptions* self = (LLPanelLandOptions*)userdata; + if (self) + { + self->getChild("SeeAvatarsCheck")->toggle(); + self->getChild("SeeAvatarsCheck")->setBtnFocus(); + self->onCommitAny(NULL, userdata); + } +} //--------------------------------------------------------------------------- // LLPanelLandAccess //--------------------------------------------------------------------------- -- cgit v1.2.3