summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterregiondebugconsole.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llfloaterregiondebugconsole.cpp')
-rw-r--r--indra/newview/llfloaterregiondebugconsole.cpp13
1 files changed, 5 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();
}