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.cpp15
1 files changed, 11 insertions, 4 deletions
diff --git a/indra/newview/llpanelprofile.cpp b/indra/newview/llpanelprofile.cpp
index be28129451..cda7942c1d 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;
@@ -95,7 +102,7 @@ void LLPanelProfile::onOpen(const LLSD& key)
{
if (key.has("open_tab_name"))
{
- getTabContainer()[PANEL_PICKS]->onClose();
+ getTabContainer()[PANEL_PICKS]->onClosePanel();
// onOpen from selected panel will be called from onTabSelected callback
getTabCtrl()->selectTabByName(key["open_tab_name"]);