diff --git a/indra/newview/llnameeditor.cpp b/indra/newview/llnameeditor.cpp index 5e5293865..08913fcde 100644 --- a/indra/newview/llnameeditor.cpp +++ b/indra/newview/llnameeditor.cpp @@ -59,7 +59,7 @@ LLNameEditor::LLNameEditor(const std::string& name, const LLRect& rect, // virtual BOOL LLNameEditor::handleMouseDown(S32 x, S32 y, MASK mask) { - if (mAllowInteract) + if (mClickForProfile && mAllowInteract) { showProfile(); return true; @@ -125,10 +125,13 @@ LLView* LLNameEditor::fromXML(LLXMLNodePtr node, LLView *parent, LLUICtrlFactory node->getAttributeString("label", loading); bool rlv_sensitive = false; node->getAttribute_bool("rlv_sensitive", rlv_sensitive); + bool click_for_profile = true; + node->getAttribute_bool("click_for_profile", click_for_profile); LLNameEditor* line_editor = new LLNameEditor("name_editor", rect, id, is_group, loading, rlv_sensitive, + click_for_profile, LLView::selectFont(node), max_text_length); diff --git a/indra/newview/llnameeditor.h b/indra/newview/llnameeditor.h index c11c26fe7..abb8bdfda 100644 --- a/indra/newview/llnameeditor.h +++ b/indra/newview/llnameeditor.h @@ -40,12 +40,14 @@ class LLNameEditor : public LLLineEditor , public LLNameUI { + bool mClickForProfile; public: LLNameEditor(const std::string& name, const LLRect& rect, const LLUUID& name_id = LLUUID::null, bool is_group = false, const std::string& loading = LLStringUtil::null, bool rlv_sensitive = false, + bool click_for_profile = true, const LLFontGL* glfont = nullptr, S32 max_text_length = 254); diff --git a/indra/newview/skins/default/xui/en-us/panel_avatar.xml b/indra/newview/skins/default/xui/en-us/panel_avatar.xml index 43e8012dc..48ca5fa16 100644 --- a/indra/newview/skins/default/xui/en-us/panel_avatar.xml +++ b/indra/newview/skins/default/xui/en-us/panel_avatar.xml @@ -30,7 +30,7 @@ border_thickness="1" bottom="-48" enabled="false" follows="left|top" font="SansSerifSmall" height="16" is_unicode="false" left_delta="75" max_length="254" mouse_opaque="false" name="dnname" - width="181" /> + width="181" click_for_profile="false"/>