summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorMnikolenko Productengine <mnikolenko@productengine.com>2017-03-15 16:01:39 +0200
committerMnikolenko Productengine <mnikolenko@productengine.com>2017-03-15 16:01:39 +0200
commit26d81d3d6cc56f8f8df9f33ff27229671fb8a2db (patch)
treecc94c3a45741143d43720cebd7dacbbc619799dc /indra
parent2ed5487fa998ba79a98d8f4a6a8abbf60551c9e3 (diff)
MAINT-7199 Field "From" on the tab "Send via E-mail" should be initialized to the agent full name
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llpanelsnapshotpostcard.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/newview/llpanelsnapshotpostcard.cpp b/indra/newview/llpanelsnapshotpostcard.cpp
index ebf9153da9..3d18e837af 100644
--- a/indra/newview/llpanelsnapshotpostcard.cpp
+++ b/indra/newview/llpanelsnapshotpostcard.cpp
@@ -106,6 +106,14 @@ BOOL LLPanelSnapshotPostcard::postBuild()
// virtual
void LLPanelSnapshotPostcard::onOpen(const LLSD& key)
{
+ LLUICtrl* name_form = getChild<LLUICtrl>("name_form");
+ if (name_form && name_form->getValue().asString().empty())
+ {
+ std::string name_string;
+ LLAgentUI::buildFullname(name_string);
+ getChild<LLUICtrl>("name_form")->setValue(LLSD(name_string));
+ }
+
LLPanelSnapshot::onOpen(key);
}