parent
01fa137993
commit
3b0bb81596
|
|
@ -347,12 +347,22 @@ void LLPanelMyProfileEdit::onCacheSetName(bool success,
|
|||
void LLPanelMyProfileEdit::onDialogSetName(const LLSD& notification, const LLSD& response)
|
||||
{
|
||||
S32 option = LLNotificationsUtil::getSelectedOption(notification, response);
|
||||
if (option == 0)
|
||||
if (option == 0 || option == 1)
|
||||
{
|
||||
LLUUID agent_id = notification["payload"]["agent_id"];
|
||||
if (agent_id.isNull()) return;
|
||||
|
||||
std::string display_name_utf8 = response["display_name"].asString();
|
||||
std::string display_name_utf8;
|
||||
if (option == 0)
|
||||
{
|
||||
// user gave us a name
|
||||
display_name_utf8 = response["display_name"].asString();
|
||||
}
|
||||
else
|
||||
{
|
||||
// reset back to People API default
|
||||
display_name_utf8 = "";
|
||||
}
|
||||
|
||||
const U32 DISPLAY_NAME_MAX_LENGTH = 31; // characters, not bytes
|
||||
LLWString display_name_wstr = utf8string_to_wstring(display_name_utf8);
|
||||
|
|
|
|||
|
|
@ -3145,7 +3145,9 @@ You are no longer frozen.
|
|||
icon="alertmodal.tga"
|
||||
name="SetDisplayName"
|
||||
type="alertmodal">
|
||||
Change your display name?
|
||||
Change your display name (used for name tags, chat, etc.)?
|
||||
|
||||
You can also reset it back to your original username.
|
||||
<form name="form">
|
||||
<input name="display_name" type="text">
|
||||
[DISPLAY_NAME]
|
||||
|
|
@ -3157,6 +3159,10 @@ Change your display name?
|
|||
text="Change"/>
|
||||
<button
|
||||
index="1"
|
||||
name="Reset"
|
||||
text="Reset"/>
|
||||
<button
|
||||
index="2"
|
||||
name="Cancel"
|
||||
text="Cancel"/>
|
||||
</form>
|
||||
|
|
|
|||
Loading…
Reference in New Issue