diff options
author | Tofu Linden <tofu.linden@lindenlab.com> | 2010-09-29 17:20:16 +0100 |
---|---|---|
committer | Tofu Linden <tofu.linden@lindenlab.com> | 2010-09-29 17:20:16 +0100 |
commit | 578ee535644931ede7dd74741d905d04d8da7fd6 (patch) | |
tree | 3240e639994c15056e63651fdd9fd7231eff5351 /indra/newview/lltoastscripttextbox.cpp | |
parent | 42ed8e8ffadd6bd7d8784084e9a29badf5d75c5c (diff) |
work on response integrity.
Diffstat (limited to 'indra/newview/lltoastscripttextbox.cpp')
-rw-r--r-- | indra/newview/lltoastscripttextbox.cpp | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/indra/newview/lltoastscripttextbox.cpp b/indra/newview/lltoastscripttextbox.cpp index 2a0d971a44..91a4831a9c 100644 --- a/indra/newview/lltoastscripttextbox.cpp +++ b/indra/newview/lltoastscripttextbox.cpp @@ -164,12 +164,17 @@ void LLToastScriptTextbox::close() #include "lllslconstants.h" void LLToastScriptTextbox::onClickOk() { - LLSD response = mNotification->getResponseTemplate(); - //response["OH MY GOD WHAT A HACK"] = "woot"; - response[TEXTBOX_MAGIC_TOKEN] = "ffffffffuuuuu"; - mNotification->respond(response); - close(); - llwarns << response << llendl; + LLViewerTextEditor* pMessageText = getChild<LLViewerTextEditor>("message"); + + if (pMessageText) + { + LLSD response = mNotification->getResponseTemplate(); + //response["OH MY GOD WHAT A HACK"] = "woot"; + response[TEXTBOX_MAGIC_TOKEN] = pMessageText->getText(); + mNotification->respond(response); + close(); + llwarns << response << llendl; + } } /* void LLToastScriptTextbox::onClickAttachment() |