summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterworldmap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llfloaterworldmap.cpp')
-rw-r--r--indra/newview/llfloaterworldmap.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/indra/newview/llfloaterworldmap.cpp b/indra/newview/llfloaterworldmap.cpp
index ce5a94520c..9f9396a2d0 100644
--- a/indra/newview/llfloaterworldmap.cpp
+++ b/indra/newview/llfloaterworldmap.cpp
@@ -272,14 +272,6 @@ BOOL LLFloaterWorldMap::postBuild()
setDefaultBtn(NULL);
- if ( gAgent.isTeen() )
- {
- // Hide Mature Events controls
- childHide("events_mature_icon");
- childHide("events_mature_label");
- childHide("event_mature_chk");
- }
-
mZoomTimer.stop();
return TRUE;
@@ -460,6 +452,11 @@ void LLFloaterWorldMap::draw()
return;
}
+ // Hide/Show Mature Events controls
+ childSetVisible("events_mature_icon", !gAgent.isTeen());
+ childSetVisible("events_mature_label", !gAgent.isTeen());
+ childSetVisible("event_mature_chk", !gAgent.isTeen());
+
// On orientation island, users don't have a home location yet, so don't
// let them teleport "home". It dumps them in an often-crowed welcome
// area (infohub) and they get confused. JC