From 0a0f6dec5f6128990f4116c1f90e19691e30c3d2 Mon Sep 17 00:00:00 2001 From: Yuri Chebotarev Date: Wed, 31 Mar 2010 16:46:16 +0300 Subject: fix for normal EXT-6346 SLapp group inspector link opens group profile instead https://codereview.productengine.com/secondlife/r/138/ reviwed vsavchuk --HG-- branch : product-engine --- indra/newview/llgroupactions.cpp | 8 +++++++- indra/newview/llgroupactions.h | 5 +++++ 2 files changed, 12 insertions(+), 1 deletion(-) (limited to 'indra') diff --git a/indra/newview/llgroupactions.cpp b/indra/newview/llgroupactions.cpp index 00e2365ffd..d4eecc8c48 100644 --- a/indra/newview/llgroupactions.cpp +++ b/indra/newview/llgroupactions.cpp @@ -105,7 +105,7 @@ public: { if (group_id.isNull()) return true; - LLGroupActions::show(group_id); + LLGroupActions::inspect(group_id); return true; } return false; @@ -246,6 +246,12 @@ static bool isGroupUIVisible() return panel->isInVisibleChain(); } +// static +void LLGroupActions::inspect(const LLUUID& group_id) +{ + LLFloaterReg::showInstance("inspect_group", LLSD().with("group_id", group_id)); +} + // static void LLGroupActions::show(const LLUUID& group_id) { diff --git a/indra/newview/llgroupactions.h b/indra/newview/llgroupactions.h index e99df86cd9..7e00f2dbe3 100644 --- a/indra/newview/llgroupactions.h +++ b/indra/newview/llgroupactions.h @@ -65,6 +65,11 @@ public: */ static void show(const LLUUID& group_id); + /** + * Show group inspector floater. + */ + static void LLGroupActions::inspect(const LLUUID& group_id); + /** * Refresh group information panel. */ -- cgit v1.2.3