diff --git a/indra/newview/llpanelavatar.cpp b/indra/newview/llpanelavatar.cpp index 2e6c48d9c..c8483f591 100644 --- a/indra/newview/llpanelavatar.cpp +++ b/indra/newview/llpanelavatar.cpp @@ -1184,10 +1184,7 @@ BOOL LLPanelAvatar::postBuild() ctrl->setEnabled(false); getChild("OK")->setCommitCallback(boost::bind(&LLPanelAvatar::onClickOK, this)); getChild("Cancel")->setCommitCallback(boost::bind(&LLPanelAvatar::onClickCancel, this)); - if (LLUICtrl* ctrl = findChild("copy_key")) // Singu TODO: Bring this back - ctrl->setCommitCallback(boost::bind(&LLPanelAvatar::onClickGetKey, this)); - void copy_profile_uri(const LLUUID& id, bool group); - getChild("copy_uri")->setCommitCallback(boost::bind(copy_profile_uri, boost::bind(&LLPanelAvatar::getAvatarID, this), false)); + getChild("copy_flyout")->setCommitCallback(boost::bind(&LLPanelAvatar::onClickCopy, this, _2)); getChildView("web_profile")->setVisible(!gSavedSettings.getString("WebProfileURL").empty()); if (mTab && !sAllowFirstLife) @@ -1421,11 +1418,18 @@ void LLPanelAvatar::resetGroupList() } } -void LLPanelAvatar::onClickGetKey() +void LLPanelAvatar::onClickCopy(const LLSD& val) { - const LLUUID& agent_id(getAvatarID()); - llinfos << "Copy agent id: " << agent_id << llendl; - gViewerWindow->getWindow()->copyTextToClipboard(utf8str_to_wstring(agent_id.asString())); + if (val.isUndefined()) + { + llinfos << "Copy agent id: " << mAvatarID << llendl; + gViewerWindow->getWindow()->copyTextToClipboard(utf8str_to_wstring(mAvatarID.asString())); + } + else + { + void copy_profile_uri(const LLUUID& id, bool group = false); + copy_profile_uri(mAvatarID); + } } void LLPanelAvatar::onClickOK() diff --git a/indra/newview/llpanelavatar.h b/indra/newview/llpanelavatar.h index 8461e8d60..89cf3b5dc 100644 --- a/indra/newview/llpanelavatar.h +++ b/indra/newview/llpanelavatar.h @@ -313,7 +313,7 @@ public: bool haveData() const { return mHaveProperties && mHaveStatistics; } bool isEditable() const { return mAllowEdit; } - void onClickGetKey(); + void onClickCopy(const LLSD& val); void onClickOK(); void onClickCancel(); diff --git a/indra/newview/skins/default/xui/de/panel_avatar.xml b/indra/newview/skins/default/xui/de/panel_avatar.xml index 5be8afbbc..1b5ba8c43 100644 --- a/indra/newview/skins/default/xui/de/panel_avatar.xml +++ b/indra/newview/skins/default/xui/de/panel_avatar.xml @@ -5,7 +5,7 @@ [ACCTTYPE] [PAYMENTINFO] [AGEVERIFICATION] -