From 4f09d9df6d2fa7b484489595f9620dc7dbb0c22b Mon Sep 17 00:00:00 2001 From: McCabe Maxsted Date: Thu, 2 Sep 2010 15:23:38 -0700 Subject: Enable chatbar commands button depending on if we're using chatbar as a commandline or not --- linden/indra/newview/llprefsadvanced.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'linden') diff --git a/linden/indra/newview/llprefsadvanced.cpp b/linden/indra/newview/llprefsadvanced.cpp index 7fa694c..de39e01 100644 --- a/linden/indra/newview/llprefsadvanced.cpp +++ b/linden/indra/newview/llprefsadvanced.cpp @@ -53,6 +53,7 @@ LLPrefsAdvanced::LLPrefsAdvanced() sInstance = this; childSetCommitCallback("speed_rez_check", onCommitCheckBox, this); + childSetCommitCallback("command_line_check", onCommitCheckBox, this); childSetAction("reset_btn", onClickResetPrefs, this); childSetAction("command_line_btn", onClickCommandLine, this); @@ -216,6 +217,15 @@ void LLPrefsAdvanced::refresh() childDisable("speed_rez_seconds_text"); } + if (childGetValue("command_line_check").asBoolean()) + { + childEnable("command_line_btn"); + } + else + { + childDisable("command_line_btn"); + } + LLComboBox* comboBox = getChild("EmeraldSpellBase"); if(comboBox != NULL) { -- cgit v1.1