Fixed major bug EXT-6590 (Preference> Maturity rating changes without direct user input).

Now we're notifying user that his/her maturity preference has been changed.

Reviewed by Mike: https://codereview.productengine.com/secondlife/r/216/

--HG--
branch : product-engine
meow-7.2.2
Vadim Savchuk 2010-04-12 15:20:27 +03:00
parent 85f1954a17
commit f98f79be8f
2 changed files with 11 additions and 0 deletions

View File

@ -4786,6 +4786,10 @@ bool handle_special_notification_callback(const LLSD& notification, const LLSD&
gSavedSettings.setU32("PreferredMaturity", preferredMaturity);
gAgent.sendMaturityPreferenceToServer(preferredMaturity);
// notify user that the maturity preference has been changed
LLSD args;
args["RATING"] = LLViewerRegion::accessToString(preferredMaturity);
LLNotificationsUtil::add("PreferredMaturityChanged", args);
}
return false;

View File

@ -3379,6 +3379,13 @@ You can click 'Change Preference' to raise your maturity Rating prefer
</form>
</notification>
<notification
icon="notifytip.tga"
name="PreferredMaturityChanged"
type="notifytip">
Your maturity rating preference is now [RATING].
</notification>
<notification
icon="alertmodal.tga"
name="LandClaimAccessBlocked"