From 56da899bb5b4ea099cb0a50ef3a2eedcd03e01b3 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Thu, 6 Feb 2014 11:15:59 +0100 Subject: [PATCH] FIRE-9045: Changed option to a general option to open the full avatar profile when clicking on an avatar inspect SLURL --- indra/newview/app_settings/settings.xml | 4 ++-- indra/newview/fschathistory.cpp | 2 +- indra/newview/llpanelprofile.cpp | 5 ++++- .../skins/default/xui/de/panel_preferences_chat.xml | 1 - .../default/xui/de/panel_preferences_firestorm.xml | 1 + .../skins/default/xui/en/panel_preferences_chat.xml | 11 ----------- .../default/xui/en/panel_preferences_firestorm.xml | 10 ++++++++++ 7 files changed, 18 insertions(+), 16 deletions(-) diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index 3787883b5e..0e25170222 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -21759,10 +21759,10 @@ Change of this parameter will affect the layout of buttons in notification toast Value 1 - FSChatnamesOpenFullProfile + FSInspectAvatarSlurlOpensProfile Comment - Open the full profile of an avatar directly when clicking on its name in chat + Open the full profile of an avatar directly when clicking on its name Persist 1 Type diff --git a/indra/newview/fschathistory.cpp b/indra/newview/fschathistory.cpp index dbb7dc5f64..11b1615df8 100644 --- a/indra/newview/fschathistory.cpp +++ b/indra/newview/fschathistory.cpp @@ -1140,7 +1140,7 @@ void FSChatHistory::appendMessage(const LLChat& chat, const LLSD &args, const LL } name_params.is_name_slurl = true; - name_params.link_href = LLSLURL("agent", chat.mFromID, (gSavedSettings.getBOOL("FSChatnamesOpenFullProfile") ? "about" : "inspect")).getSLURLString(); + name_params.link_href = LLSLURL("agent", chat.mFromID, "inspect").getSLURLString(); if (from_me && gSavedSettings.getBOOL("FSChatHistoryShowYou")) { diff --git a/indra/newview/llpanelprofile.cpp b/indra/newview/llpanelprofile.cpp index bc743bb599..92d7cd28f4 100755 --- a/indra/newview/llpanelprofile.cpp +++ b/indra/newview/llpanelprofile.cpp @@ -126,7 +126,10 @@ public: } const std::string verb = params[1].asString(); - if (verb == "about") + // FIRE-9045: Inspect links always open full profile + //if (verb == "about") + if (verb == "about" || (gSavedSettings.getBOOL("FSInspectAvatarSlurlOpensProfile") && verb == "inspect")) + // { LLAvatarActions::showProfile(avatar_id); return true; diff --git a/indra/newview/skins/default/xui/de/panel_preferences_chat.xml b/indra/newview/skins/default/xui/de/panel_preferences_chat.xml index 14ab20741e..06ec235ad3 100755 --- a/indra/newview/skins/default/xui/de/panel_preferences_chat.xml +++ b/indra/newview/skins/default/xui/de/panel_preferences_chat.xml @@ -142,7 +142,6 @@ - diff --git a/indra/newview/skins/default/xui/de/panel_preferences_firestorm.xml b/indra/newview/skins/default/xui/de/panel_preferences_firestorm.xml index 160542a4a9..281fc7a795 100644 --- a/indra/newview/skins/default/xui/de/panel_preferences_firestorm.xml +++ b/indra/newview/skins/default/xui/de/panel_preferences_firestorm.xml @@ -23,6 +23,7 @@ + diff --git a/indra/newview/skins/default/xui/en/panel_preferences_chat.xml b/indra/newview/skins/default/xui/en/panel_preferences_chat.xml index d9850050db..b2450c480b 100755 --- a/indra/newview/skins/default/xui/en/panel_preferences_chat.xml +++ b/indra/newview/skins/default/xui/en/panel_preferences_chat.xml @@ -890,17 +890,6 @@ name="FSMarkObjects" control_name="FSMarkObjects" label="Mark objects with (no name) when they speak to avoid spoofing"/> - +