summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorRichard Linden <none@none>2011-10-13 21:09:16 -0700
committerRichard Linden <none@none>2011-10-13 21:09:16 -0700
commit5e85afeda9200e8c8b4f2f05b13542c170c02d52 (patch)
treede71b676a1c20c6b4380c4f664740f6ed31a113e /indra/newview
parent9f682772d93b4530ad7bcbf52adb2300cd91cd4d (diff)
EXP-1321 FIX 3-way toolbar button functionality not enforced on "Profile" button.
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llviewermenu.cpp3
1 files changed, 2 insertions, 1 deletions
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)