summaryrefslogtreecommitdiff
path: root/indra/newview/llagent.cpp
diff options
context:
space:
mode:
authorTodd Stinson <stinson@lindenlab.com>2012-05-24 11:39:54 -0700
committerTodd Stinson <stinson@lindenlab.com>2012-05-24 11:39:54 -0700
commit245a5a2814306836d61d6acc9ff852835d624ed9 (patch)
tree6864aaa447a76410bc10598d394adcc1019737d3 /indra/newview/llagent.cpp
parent7fc6d3d79b0e28a450b097c923387de133cc4545 (diff)
EXP-1948: Ensuring that we show the maturity changed notification in the case of a teleport failure on the second attempt.
Diffstat (limited to 'indra/newview/llagent.cpp')
-rwxr-xr-xindra/newview/llagent.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/indra/newview/llagent.cpp b/indra/newview/llagent.cpp
index 07a439e696..1e0ec7f05b 100755
--- a/indra/newview/llagent.cpp
+++ b/indra/newview/llagent.cpp
@@ -3705,7 +3705,16 @@ void LLAgent::handleTeleportFailed()
{
mFailedTeleportRequest = mCurrentTeleportRequest;
}
- mIsMaturityRatingChangingDuringTeleport = false;
+ if (mIsMaturityRatingChangingDuringTeleport)
+ {
+ // notify user that the maturity preference has been changed
+ std::string maturityRating = LLViewerRegion::accessToString(mMaturityRatingChange);
+ LLStringUtil::toLower(maturityRating);
+ LLSD args;
+ args["RATING"] = maturityRating;
+ LLNotificationsUtil::add("PreferredMaturityChanged", args);
+ mIsMaturityRatingChangingDuringTeleport = false;
+ }
}
void LLAgent::teleportRequest(