aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llpanelinput.cpp6
-rw-r--r--linden/indra/newview/skins/default/xui/en-us/panel_preferences_input.xml2
2 files changed, 5 insertions, 3 deletions
diff --git a/linden/indra/newview/llpanelinput.cpp b/linden/indra/newview/llpanelinput.cpp
index 9664b6f..538f706 100644
--- a/linden/indra/newview/llpanelinput.cpp
+++ b/linden/indra/newview/llpanelinput.cpp
@@ -79,6 +79,8 @@ BOOL LLPanelInput::postBuild()
79 childSetValue("double_click_action", gSavedSettings.getString("DoubleClickAction")); 79 childSetValue("double_click_action", gSavedSettings.getString("DoubleClickAction"));
80 childSetCommitCallback("double_click_action", onCommitAction, this); 80 childSetCommitCallback("double_click_action", onCommitAction, this);
81 childSetValue("go_action", gSavedSettings.getString("GoAction")); 81 childSetValue("go_action", gSavedSettings.getString("GoAction"));
82 childSetEnabled("go_action_label", gSavedSettings.getString("DoubleClickAction") == "Go");
83 childSetEnabled("go_action", gSavedSettings.getString("DoubleClickAction") == "Go");
82 84
83 childSetValue("Disable camera constraints", gSavedSettings.getBOOL("DisableCameraConstraints")); 85 childSetValue("Disable camera constraints", gSavedSettings.getBOOL("DisableCameraConstraints"));
84 childSetValue("disable_min_zoom_check", gSavedSettings.getBOOL("DisableMinZoomDist")); 86 childSetValue("disable_min_zoom_check", gSavedSettings.getBOOL("DisableMinZoomDist"));
@@ -139,7 +141,7 @@ void LLPanelInput::onCommitAction(LLUICtrl* ctrl, void* user_data)
139 LLComboBox* combo = (LLComboBox*)ctrl; 141 LLComboBox* combo = (LLComboBox*)ctrl;
140 if (self && combo) 142 if (self && combo)
141 { 143 {
142 self->childSetEnabled("go_action_label", combo->getSimple() == "Go"); 144 self->childSetEnabled("go_action_label", combo->getValue().asString() == "Go");
143 self->childSetEnabled("go_action", combo->getSimple() == "Go"); 145 self->childSetEnabled("go_action", combo->getValue().asString() == "Go");
144 } 146 }
145} 147}
diff --git a/linden/indra/newview/skins/default/xui/en-us/panel_preferences_input.xml b/linden/indra/newview/skins/default/xui/en-us/panel_preferences_input.xml
index 5713933..9f3c5c4 100644
--- a/linden/indra/newview/skins/default/xui/en-us/panel_preferences_input.xml
+++ b/linden/indra/newview/skins/default/xui/en-us/panel_preferences_input.xml
@@ -25,7 +25,7 @@ USE left="270" FOR TABBING OPTIONS
25 Double-Click Action: 25 Double-Click Action:
26 </text> 26 </text>
27 27
28 <combo_box name="double_click_action" 28 <combo_box name="double_click_action" enabled="true"
29 bottom_delta="-25" left_delta="30" height="18" width="160" 29 bottom_delta="-25" left_delta="30" height="18" width="160"
30 follows="left|top" mouse_opaque="true"> 30 follows="left|top" mouse_opaque="true">
31 <combo_item name="None" value="None"> 31 <combo_item name="None" value="None">