summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorMnikolenko Productengine <mnikolenko@productengine.com>2022-09-13 13:04:59 +0300
committerMnikolenko Productengine <mnikolenko@productengine.com>2022-09-13 13:04:59 +0300
commiteaf86980330251f1f5f8af5c4e9a7281d21a625c (patch)
treebd10adb62c55e33fc069d593926ed20121906d7e /indra
parentffd731a3401fcee23eefa0541405d18ee4cd3d84 (diff)
SL-18137 Open self profile when using app/openfloater/profile
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llviewerfloaterreg.cpp8
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;
}