summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorRichard Linden <none@none>2010-08-24 09:41:35 -0700
committerRichard Linden <none@none>2010-08-24 09:41:35 -0700
commit5a6a792920bb0dee35bcd711bd786d907bda556a (patch)
tree3ef961086a94db1d95759d6835f16e0662a4856e /indra/newview
parent816cf7db82f2e633631c334f44547714de6cbebc (diff)
fix for sim console not staying scrolled to bottom
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llfloaterregiondebugconsole.cpp13
-rw-r--r--indra/newview/skins/default/xui/en/floater_region_debug_console.xml2
2 files changed, 7 insertions, 8 deletions
diff --git a/indra/newview/llfloaterregiondebugconsole.cpp b/indra/newview/llfloaterregiondebugconsole.cpp
index 058f894800..8885fa0cb1 100644
--- a/indra/newview/llfloaterregiondebugconsole.cpp
+++ b/indra/newview/llfloaterregiondebugconsole.cpp
@@ -55,11 +55,9 @@ public:
/*virtual*/
void result(const LLSD& content)
{
- std::string text = mOutput->getText();
+ std::string text = content.asString();
text += '\n';
- text += content.asString();
- text += '\n';
- mOutput->setText(text);
+ mOutput->appendText(text, true);
};
LLTextEditor * mOutput;
@@ -80,14 +78,13 @@ BOOL LLFloaterRegionDebugConsole::postBuild()
void LLFloaterRegionDebugConsole::onInput(LLUICtrl* ctrl, const LLSD& param)
{
LLLineEditor * input = static_cast<LLLineEditor*>(ctrl);
- std::string text = mOutput->getText();
- text += "\n\POST: ";
+ std::string text = "\\POST: ";
text += input->getText();
- mOutput->setText(text);
+ mOutput->appendText(text, true);
std::string url = gAgent.getRegion()->getCapability("SimConsole");
LLHTTPClient::post(url, LLSD(input->getText()), new ::Responder(mOutput));
- input->setText(std::string(""));
+ input->clear();
}
diff --git a/indra/newview/skins/default/xui/en/floater_region_debug_console.xml b/indra/newview/skins/default/xui/en/floater_region_debug_console.xml
index 591d77340a..976fa35d3c 100644
--- a/indra/newview/skins/default/xui/en/floater_region_debug_console.xml
+++ b/indra/newview/skins/default/xui/en/floater_region_debug_console.xml
@@ -9,6 +9,7 @@
width="600">
<text_editor
left="10"
+ read_only="true"
type="string"
length="1"
follows="left|top|right|bottom"
@@ -18,6 +19,7 @@
ignore_tab="false"
layout="topleft"
max_length="65536"
+ track_end="true"
name="region_debug_console_output"
show_line_numbers="false"
word_wrap="true">