summaryrefslogtreecommitdiff
path: root/indra/newview/llpanelprofile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llpanelprofile.cpp')
-rw-r--r--indra/newview/llpanelprofile.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/indra/newview/llpanelprofile.cpp b/indra/newview/llpanelprofile.cpp
index be28129451..3bd2645be3 100644
--- a/indra/newview/llpanelprofile.cpp
+++ b/indra/newview/llpanelprofile.cpp
@@ -35,6 +35,7 @@
#include "llagent.h"
#include "llavataractions.h"
+#include "llfloaterreg.h"
#include "llcommandhandler.h"
#include "llpanelpicks.h"
#include "lltabcontainer.h"
@@ -52,15 +53,21 @@ public:
LLMediaCtrl* web)
{
if (params.size() < 2) return false;
- LLUUID agent_id;
- if (!agent_id.set(params[0], FALSE))
+ LLUUID avatar_id;
+ if (!avatar_id.set(params[0], FALSE))
{
return false;
}
if (params[1].asString() == "about")
{
- LLAvatarActions::showProfile(agent_id);
+ LLAvatarActions::showProfile(avatar_id);
+ return true;
+ }
+
+ if (params[1].asString() == "inspect")
+ {
+ LLFloaterReg::showInstance("inspect_avatar", LLSD().insert("avatar_id", avatar_id));
return true;
}
return false;