diff options
author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2022-09-13 13:04:59 +0300 |
---|---|---|
committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2022-09-13 13:04:59 +0300 |
commit | eaf86980330251f1f5f8af5c4e9a7281d21a625c (patch) | |
tree | bd10adb62c55e33fc069d593926ed20121906d7e /indra/newview/llviewerfloaterreg.cpp | |
parent | ffd731a3401fcee23eefa0541405d18ee4cd3d84 (diff) |
SL-18137 Open self profile when using app/openfloater/profile
Diffstat (limited to 'indra/newview/llviewerfloaterreg.cpp')
-rw-r--r-- | indra/newview/llviewerfloaterreg.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/indra/newview/llviewerfloaterreg.cpp b/indra/newview/llviewerfloaterreg.cpp index 75f68517de..59654350e4 100644 --- a/indra/newview/llviewerfloaterreg.cpp +++ b/indra/newview/llviewerfloaterreg.cpp @@ -170,6 +170,7 @@ // *NOTE: Please add files in alphabetical order to keep merges easy. // handle secondlife:///app/openfloater/{NAME} URLs +const std::string FLOATER_PROFILE("profile"); class LLFloaterOpenHandler : public LLCommandHandler { public: @@ -185,7 +186,12 @@ public: } const std::string floater_name = LLURI::unescape(params[0].asString()); - LLFloaterReg::showInstance(floater_name); + LLSD key; + if (floater_name == FLOATER_PROFILE) + { + key["id"] = gAgentID; + } + LLFloaterReg::showInstance(floater_name, key); return true; } |