aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpaneldirpopular.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llpaneldirpopular.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/linden/indra/newview/llpaneldirpopular.cpp b/linden/indra/newview/llpaneldirpopular.cpp
index 39465d5..1534767 100644
--- a/linden/indra/newview/llpaneldirpopular.cpp
+++ b/linden/indra/newview/llpaneldirpopular.cpp
@@ -77,7 +77,7 @@ LLPanelDirPopular::~LLPanelDirPopular()
77void LLPanelDirPopular::draw() 77void LLPanelDirPopular::draw()
78{ 78{
79 // You only have a choice if you are mature] 79 // You only have a choice if you are mature]
80 childSetVisible("incmature", gAgent.mAccess >= SIM_ACCESS_MATURE); 80 childSetVisible("incmature", !gAgent.isTeen());
81 childSetValue("incmature", gSavedSettings.getBOOL("ShowMatureSims")); 81 childSetValue("incmature", gSavedSettings.getBOOL("ShowMatureSims"));
82 82
83 LLPanelDirBrowser::draw(); 83 LLPanelDirBrowser::draw();
@@ -93,7 +93,7 @@ void LLPanelDirPopular::draw()
93void LLPanelDirPopular::requestPopular() 93void LLPanelDirPopular::requestPopular()
94{ 94{
95 LLMessageSystem* msg = gMessageSystem; 95 LLMessageSystem* msg = gMessageSystem;
96 BOOL pg_only = !childGetValue("incmature").asBoolean() || gAgent.mAccess <= SIM_ACCESS_PG; 96 BOOL pg_only = !childGetValue("incmature").asBoolean() || gAgent.isTeen();
97 BOOL pictures_only = childGetValue("incpictures").asBoolean(); 97 BOOL pictures_only = childGetValue("incpictures").asBoolean();
98 98
99 U32 flags = 0x0; 99 U32 flags = 0x0;