diff options
author | Jacek Antonelli | 2008-08-15 23:45:16 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:16 -0500 |
commit | 3f27ba891ac4d032753b219b4b96d1ffbc9fb488 (patch) | |
tree | 504932ee91a0356fba7ea48798887c96867e492f /linden/indra/newview/llpanelgroupgeneral.cpp | |
parent | Second Life viewer sources 1.18.4.3 (diff) | |
download | meta-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/llpanelgroupgeneral.cpp')
-rw-r--r-- | linden/indra/newview/llpanelgroupgeneral.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/linden/indra/newview/llpanelgroupgeneral.cpp b/linden/indra/newview/llpanelgroupgeneral.cpp index 33dbcd7..3ad65b5 100644 --- a/linden/indra/newview/llpanelgroupgeneral.cpp +++ b/linden/indra/newview/llpanelgroupgeneral.cpp | |||
@@ -161,7 +161,7 @@ BOOL LLPanelGroupGeneral::postBuild() | |||
161 | { | 161 | { |
162 | mCtrlMature->setCommitCallback(onCommitAny); | 162 | mCtrlMature->setCommitCallback(onCommitAny); |
163 | mCtrlMature->setCallbackUserData(this); | 163 | mCtrlMature->setCallbackUserData(this); |
164 | mCtrlMature->setVisible( gAgent.mAccess > SIM_ACCESS_PG ); | 164 | mCtrlMature->setVisible( !gAgent.isTeen() ); |
165 | } | 165 | } |
166 | 166 | ||
167 | mCtrlOpenEnrollment = (LLCheckBoxCtrl*) getChildByName("open_enrollement", recurse); | 167 | mCtrlOpenEnrollment = (LLCheckBoxCtrl*) getChildByName("open_enrollement", recurse); |
@@ -476,7 +476,7 @@ bool LLPanelGroupGeneral::apply(LLString& mesg) | |||
476 | if (mInsignia) gdatap->mInsigniaID = mInsignia->getImageAssetID(); | 476 | if (mInsignia) gdatap->mInsigniaID = mInsignia->getImageAssetID(); |
477 | if (mCtrlMature) | 477 | if (mCtrlMature) |
478 | { | 478 | { |
479 | if (gAgent.mAccess > SIM_ACCESS_PG) | 479 | if (!gAgent.isTeen()) |
480 | { | 480 | { |
481 | gdatap->mMaturePublish = mCtrlMature->get(); | 481 | gdatap->mMaturePublish = mCtrlMature->get(); |
482 | } | 482 | } |
@@ -639,7 +639,7 @@ void LLPanelGroupGeneral::update(LLGroupChange gc) | |||
639 | { | 639 | { |
640 | mCtrlMature->set(gdatap->mMaturePublish); | 640 | mCtrlMature->set(gdatap->mMaturePublish); |
641 | mCtrlMature->setEnabled(mAllowEdit && can_change_ident); | 641 | mCtrlMature->setEnabled(mAllowEdit && can_change_ident); |
642 | mCtrlMature->setVisible( gAgent.mAccess > SIM_ACCESS_PG ); | 642 | mCtrlMature->setVisible( !gAgent.isTeen() ); |
643 | } | 643 | } |
644 | if (mCtrlOpenEnrollment) | 644 | if (mCtrlOpenEnrollment) |
645 | { | 645 | { |