diff options
author | James Cook <james@lindenlab.com> | 2010-05-07 15:01:27 -0700 |
---|---|---|
committer | James Cook <james@lindenlab.com> | 2010-05-07 15:01:27 -0700 |
commit | 5ad8364a68d64d2d921f4cf65dbab0eb7b03fc1d (patch) | |
tree | d84ac94b833f72dec54df79283e2ccb5bc333e9e /indra/newview/llpanelme.cpp | |
parent | 0e9faa3f0492f3ea1988377ee55c8b772d69ebed (diff) |
DEV-49780 Better confirmation/failure messages for setting name
Reviewed with Callum
Diffstat (limited to 'indra/newview/llpanelme.cpp')
-rw-r--r-- | indra/newview/llpanelme.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/newview/llpanelme.cpp b/indra/newview/llpanelme.cpp index d4a54852cd..3e5fc7a482 100644 --- a/indra/newview/llpanelme.cpp +++ b/indra/newview/llpanelme.cpp @@ -311,6 +311,14 @@ void LLPanelMyProfileEdit::onCacheSetName(bool success, { if (success) { + // Inform the user that the change took place, but will take a while + // to percolate. + LLSD args; + // *TODO: get estimated percolation time from service + S32 timeout_hours = 72; + args["HOURS"] = llformat("%d", timeout_hours); + LLNotificationsUtil::add("SetDisplayNameSuccess", args); + // Re-fetch my name, as it may have been sanitized by the service LLAvatarNameCache::get(getAvatarId(), boost::bind(&LLPanelMyProfileEdit::onNameCache, this, _1, _2)); |