aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpaneldirgroups.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llpaneldirgroups.cpp')
-rw-r--r--linden/indra/newview/llpaneldirgroups.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/linden/indra/newview/llpaneldirgroups.cpp b/linden/indra/newview/llpaneldirgroups.cpp
index e9bcb53..3f6d795 100644
--- a/linden/indra/newview/llpaneldirgroups.cpp
+++ b/linden/indra/newview/llpaneldirgroups.cpp
@@ -71,7 +71,7 @@ LLPanelDirGroups::~LLPanelDirGroups()
71void LLPanelDirGroups::draw() 71void LLPanelDirGroups::draw()
72{ 72{
73 // You only have a choice if you are mature 73 // You only have a choice if you are mature
74 childSetVisible("incmature", gAgent.mAccess >= SIM_ACCESS_MATURE); 74 childSetVisible("incmature", !gAgent.isTeen());
75 childSetValue("incmature", gSavedSettings.getBOOL("ShowMatureGroups")); 75 childSetValue("incmature", gSavedSettings.getBOOL("ShowMatureGroups"));
76 76
77 LLPanelDirBrowser::draw(); 77 LLPanelDirBrowser::draw();
@@ -93,7 +93,7 @@ void LLPanelDirGroups::performQuery()
93 93
94 // Check group mature filter. 94 // Check group mature filter.
95 if ( !gSavedSettings.getBOOL("ShowMatureGroups") 95 if ( !gSavedSettings.getBOOL("ShowMatureGroups")
96 || gAgent.mAccess <= SIM_ACCESS_PG ) 96 || gAgent.isTeen() )
97 { 97 {
98 scope |= DFQ_FILTER_MATURE; 98 scope |= DFQ_FILTER_MATURE;
99 } 99 }