diff options
author | Richard Linden <none@none> | 2011-03-08 12:42:15 -0800 |
---|---|---|
committer | Richard Linden <none@none> | 2011-03-08 12:42:15 -0800 |
commit | f9d70c41c9b7e7c0bb1cca184e6b5e99fc75a656 (patch) | |
tree | be21de16d25d91e98192580120b67cba41017e43 /indra/newview/llviewermessage.cpp | |
parent | 3732ac46e691f27d181c07b7c511c3c433f9c665 (diff) |
SOCIAL-652 FIX Decline notification shown to users in minimal skin when they click on free one click objects
Diffstat (limited to 'indra/newview/llviewermessage.cpp')
-rw-r--r-- | indra/newview/llviewermessage.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/indra/newview/llviewermessage.cpp b/indra/newview/llviewermessage.cpp index 103989ee80..c2449907ac 100644 --- a/indra/newview/llviewermessage.cpp +++ b/indra/newview/llviewermessage.cpp @@ -1715,15 +1715,18 @@ bool LLOfferInfo::inventory_task_offer_callback(const LLSD& notification, const msg->addBinaryDataFast(_PREHASH_BinaryBucket, EMPTY_BINARY_BUCKET, EMPTY_BINARY_BUCKET_SIZE); // send the message msg->sendReliable(mHost); + + if (gSavedSettings.getBOOL("LogInventoryDecline")) { LLStringUtil::format_map_t log_message_args; log_message_args["DESC"] = mDesc; log_message_args["NAME"] = mFromName; log_message = LLTrans::getString("InvOfferDecline", log_message_args); + + LLSD args; + args["MESSAGE"] = log_message; + LLNotificationsUtil::add("SystemMessage", args); } - LLSD args; - args["MESSAGE"] = log_message; - LLNotificationsUtil::add("SystemMessage", args); if (busy && (!mFromGroup && !mFromObject)) { |