summaryrefslogtreecommitdiff
path: root/indra/newview/lltoastscripttextbox.cpp
diff options
context:
space:
mode:
authorTofu Linden <tofu.linden@lindenlab.com>2010-09-29 19:00:55 +0100
committerTofu Linden <tofu.linden@lindenlab.com>2010-09-29 19:00:55 +0100
commitca1821048583acedaae7e1dbfe83a0b058faee2c (patch)
treeea9f083858dbfc7962699a39cec22389df1198c3 /indra/newview/lltoastscripttextbox.cpp
parentf7f3df3a2c0b7a87828c4a2c777d9a94502f3d4e (diff)
more robustness for empty-but-not-aborted textboxes.
Diffstat (limited to 'indra/newview/lltoastscripttextbox.cpp')
-rw-r--r--indra/newview/lltoastscripttextbox.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/newview/lltoastscripttextbox.cpp b/indra/newview/lltoastscripttextbox.cpp
index 91a4831a9c..bdadff4cb0 100644
--- a/indra/newview/lltoastscripttextbox.cpp
+++ b/indra/newview/lltoastscripttextbox.cpp
@@ -171,6 +171,12 @@ void LLToastScriptTextbox::onClickOk()
LLSD response = mNotification->getResponseTemplate();
//response["OH MY GOD WHAT A HACK"] = "woot";
response[TEXTBOX_MAGIC_TOKEN] = pMessageText->getText();
+ if (response[TEXTBOX_MAGIC_TOKEN].asString().empty())
+ {
+ // so we can distinguish between a successfully
+ // submitted blank textbox, and an ignored toast
+ response[TEXTBOX_MAGIC_TOKEN] = true;
+ }
mNotification->respond(response);
close();
llwarns << response << llendl;