aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpaneldirplaces.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:16 -0500
committerJacek Antonelli2008-08-15 23:45:16 -0500
commit3f27ba891ac4d032753b219b4b96d1ffbc9fb488 (patch)
tree504932ee91a0356fba7ea48798887c96867e492f /linden/indra/newview/llpaneldirplaces.cpp
parentSecond Life viewer sources 1.18.4.3 (diff)
downloadmeta-impy-3f27ba891ac4d032753b219b4b96d1ffbc9fb488.zip
meta-impy-3f27ba891ac4d032753b219b4b96d1ffbc9fb488.tar.gz
meta-impy-3f27ba891ac4d032753b219b4b96d1ffbc9fb488.tar.bz2
meta-impy-3f27ba891ac4d032753b219b4b96d1ffbc9fb488.tar.xz
Second Life viewer sources 1.18.5.0-RC
Diffstat (limited to 'linden/indra/newview/llpaneldirplaces.cpp')
-rw-r--r--linden/indra/newview/llpaneldirplaces.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/linden/indra/newview/llpaneldirplaces.cpp b/linden/indra/newview/llpaneldirplaces.cpp
index 5802992..6ba8652 100644
--- a/linden/indra/newview/llpaneldirplaces.cpp
+++ b/linden/indra/newview/llpaneldirplaces.cpp
@@ -89,7 +89,7 @@ LLPanelDirPlaces::~LLPanelDirPlaces()
89void LLPanelDirPlaces::draw() 89void LLPanelDirPlaces::draw()
90{ 90{
91 // You only have a choice if you are mature 91 // You only have a choice if you are mature
92 childSetVisible("incmature", gAgent.mAccess >= SIM_ACCESS_MATURE); 92 childSetVisible("incmature", !gAgent.isTeen());
93 childSetValue("incmature", gSavedSettings.getBOOL("ShowMatureSims")); 93 childSetValue("incmature", gSavedSettings.getBOOL("ShowMatureSims"));
94 94
95 LLPanelDirBrowser::draw(); 95 LLPanelDirBrowser::draw();
@@ -118,7 +118,7 @@ void LLPanelDirPlaces::performQuery()
118 } 118 }
119 119
120 BOOL pg_only = !gSavedSettings.getBOOL("ShowMatureSims") 120 BOOL pg_only = !gSavedSettings.getBOOL("ShowMatureSims")
121 || gAgent.mAccess <= SIM_ACCESS_PG; 121 || gAgent.isTeen();
122 122
123 queryCore(name, category, pg_only); 123 queryCore(name, category, pg_only);
124} 124}