From 5e85afeda9200e8c8b4f2f05b13542c170c02d52 Mon Sep 17 00:00:00 2001 From: Richard Linden Date: Thu, 13 Oct 2011 21:09:16 -0700 Subject: EXP-1321 FIX 3-way toolbar button functionality not enforced on "Profile" button. --- indra/newview/llviewermenu.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/indra/newview/llviewermenu.cpp b/indra/newview/llviewermenu.cpp index 5d215c7f6d..2de70c52c7 100644 --- a/indra/newview/llviewermenu.cpp +++ b/indra/newview/llviewermenu.cpp @@ -3115,7 +3115,8 @@ void handle_avatar_eject(const LLSD& avatar_id) bool my_profile_visible() { - return LLAvatarActions::profileVisible(gAgent.getID()); + LLFloater* floaterp = LLFloaterReg::findInstance("profile", LLSD().with("id", gAgent.getID())); + return floaterp && floaterp->isInVisibleChain(); } bool enable_freeze_eject(const LLSD& avatar_id) -- cgit v1.2.3