aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpaneldirevents.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/llpaneldirevents.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 '')
-rw-r--r--linden/indra/newview/llpaneldirevents.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/linden/indra/newview/llpaneldirevents.cpp b/linden/indra/newview/llpaneldirevents.cpp
index 861c54d..d8a4652 100644
--- a/linden/indra/newview/llpaneldirevents.cpp
+++ b/linden/indra/newview/llpaneldirevents.cpp
@@ -111,7 +111,7 @@ void LLPanelDirEvents::draw()
111void LLPanelDirEvents::refresh() 111void LLPanelDirEvents::refresh()
112{ 112{
113 // You only have a choice if you are mature 113 // You only have a choice if you are mature
114 childSetVisible("incmature", gAgent.mAccess >= SIM_ACCESS_MATURE); 114 childSetVisible("incmature", !gAgent.isTeen());
115 115
116 BOOL godlike = gAgent.isGodlike(); 116 BOOL godlike = gAgent.isGodlike();
117 childSetVisible("Delete", godlike); 117 childSetVisible("Delete", godlike);
@@ -182,7 +182,7 @@ void LLPanelDirEvents::performQueryOrDelete(U32 event_id)
182 setupNewSearch(); 182 setupNewSearch();
183 183
184 U32 scope = DFQ_DATE_EVENTS; 184 U32 scope = DFQ_DATE_EVENTS;
185 if ( gAgent.mAccess <= SIM_ACCESS_PG) scope |= DFQ_PG_SIMS_ONLY; 185 if ( gAgent.isTeen()) scope |= DFQ_PG_SIMS_ONLY;
186 if ( !childGetValue("incmature").asBoolean() ) scope |= DFQ_PG_EVENTS_ONLY; 186 if ( !childGetValue("incmature").asBoolean() ) scope |= DFQ_PG_EVENTS_ONLY;
187 187
188 std::ostringstream params; 188 std::ostringstream params;