summaryrefslogtreecommitdiff
path: root/indra/newview/llviewermenu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llviewermenu.cpp')
-rw-r--r--indra/newview/llviewermenu.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/indra/newview/llviewermenu.cpp b/indra/newview/llviewermenu.cpp
index 6ce0c358a1..560cc2a314 100644
--- a/indra/newview/llviewermenu.cpp
+++ b/indra/newview/llviewermenu.cpp
@@ -3114,7 +3114,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)
@@ -4524,7 +4525,7 @@ bool enable_how_to_visible(const LLSD& param)
{
LLFloaterWebContent::Params p;
p.target = "__help_how_to";
- return LLFloaterReg::instanceVisible(param, p);
+ return LLFloaterReg::instanceVisible("how_to", p);
}
class LLToolsEnableBuyOrTake : public view_listener_t
@@ -6892,9 +6893,12 @@ class LLToggleHowTo : public view_listener_t
{
LLFloaterWebContent::Params p;
p.url = gSavedSettings.getString("HowToHelpURL");
+ p.show_chrome = false;
p.target = "__help_how_to";
+ p.show_page_title = false;
+ p.preferred_media_size = LLRect(0, 460, 335, 0);
- LLFloaterReg::toggleInstanceOrBringToFront(userdata, p);
+ LLFloaterReg::toggleInstanceOrBringToFront("how_to", p);
return true;
}
};