summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterpreference.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llfloaterpreference.cpp')
-rw-r--r--indra/newview/llfloaterpreference.cpp17
1 files changed, 15 insertions, 2 deletions
diff --git a/indra/newview/llfloaterpreference.cpp b/indra/newview/llfloaterpreference.cpp
index 109db7e3d7..ec725a8ace 100644
--- a/indra/newview/llfloaterpreference.cpp
+++ b/indra/newview/llfloaterpreference.cpp
@@ -3506,8 +3506,21 @@ bool LLPanelPreferenceGameControl::postBuild()
mCheckGameControlToAgent = getChild<LLCheckBoxCtrl>("game_control_to_agent");
mCheckAgentToGameControl = getChild<LLCheckBoxCtrl>("agent_to_game_control");
- mCheckGameControlToAgent->setCommitCallback([this](LLUICtrl*, const LLSD&) { updateActionTableState(); });
- mCheckAgentToGameControl->setCommitCallback([this](LLUICtrl*, const LLSD&) { updateActionTableState(); });
+ mCheckGameControlToServer->setCommitCallback([this](LLUICtrl*, const LLSD&)
+ {
+ LLGameControl::setSendToServer(mCheckGameControlToServer->getValue());
+ updateActionTableState();
+ });
+ mCheckGameControlToAgent->setCommitCallback([this](LLUICtrl*, const LLSD&)
+ {
+ LLGameControl::setControlAgent(mCheckGameControlToAgent->getValue());
+ updateActionTableState();
+ });
+ mCheckAgentToGameControl->setCommitCallback([this](LLUICtrl*, const LLSD&)
+ {
+ LLGameControl::setTranslateAgentActions(mCheckAgentToGameControl->getValue());
+ updateActionTableState();
+ });
getChild<LLTabContainer>("game_control_tabs")->setCommitCallback([this](LLUICtrl*, const LLSD&) { clearSelectionState(); });
getChild<LLTabContainer>("device_settings_tabs")->setCommitCallback([this](LLUICtrl*, const LLSD&) { clearSelectionState(); });