aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloaterland.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llfloaterland.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/linden/indra/newview/llfloaterland.cpp b/linden/indra/newview/llfloaterland.cpp
index 43c39aa..283b3f4 100644
--- a/linden/indra/newview/llfloaterland.cpp
+++ b/linden/indra/newview/llfloaterland.cpp
@@ -355,7 +355,6 @@ BOOL LLPanelLandGeneral::postBuild()
355 childSetPrevalidate("Name", LLLineEditor::prevalidatePrintableNotPipe); 355 childSetPrevalidate("Name", LLLineEditor::prevalidatePrintableNotPipe);
356 childSetUserData("Name", this); 356 childSetUserData("Name", this);
357 357
358
359 mEditDesc = LLUICtrlFactory::getTextEditorByName(this, "Description"); 358 mEditDesc = LLUICtrlFactory::getTextEditorByName(this, "Description");
360 mEditDesc->setCommitOnFocusLost(TRUE); 359 mEditDesc->setCommitOnFocusLost(TRUE);
361 mEditDesc->setCommitCallback(onCommitAny); 360 mEditDesc->setCommitCallback(onCommitAny);
@@ -1865,13 +1864,11 @@ LLPanelLandOptions::LLPanelLandOptions(LLParcelSelectionHandle& parcel)
1865 mLocationText(NULL), 1864 mLocationText(NULL),
1866 mSetBtn(NULL), 1865 mSetBtn(NULL),
1867 mClearBtn(NULL), 1866 mClearBtn(NULL),
1868 mAllowPublishCtrl(NULL),
1869 mMatureCtrl(NULL), 1867 mMatureCtrl(NULL),
1870 mPushRestrictionCtrl(NULL), 1868 mPushRestrictionCtrl(NULL),
1871 mPublishHelpButton(NULL), 1869 mPublishHelpButton(NULL),
1872 mParcel(parcel) 1870 mParcel(parcel)
1873{ 1871{
1874
1875} 1872}
1876 1873
1877 1874
@@ -1932,7 +1929,7 @@ BOOL LLPanelLandOptions::postBuild()
1932 mPublishHelpButton->setClickedCallback(onClickPublishHelp, this); 1929 mPublishHelpButton->setClickedCallback(onClickPublishHelp, this);
1933 1930
1934 1931
1935 if (gAgent.mAccess < SIM_ACCESS_MATURE) 1932 if (gAgent.isTeen())
1936 { 1933 {
1937 // Disable these buttons if they are PG (Teen) users 1934 // Disable these buttons if they are PG (Teen) users
1938 mPublishHelpButton->setVisible(FALSE); 1935 mPublishHelpButton->setVisible(FALSE);
@@ -2147,7 +2144,7 @@ void LLPanelLandOptions::refresh()
2147 mMatureCtrl->setEnabled( can_change_identity ); 2144 mMatureCtrl->setEnabled( can_change_identity );
2148 mPublishHelpButton->setEnabled( can_change_identity ); 2145 mPublishHelpButton->setEnabled( can_change_identity );
2149 2146
2150 if (gAgent.mAccess < SIM_ACCESS_MATURE) 2147 if (gAgent.isTeen())
2151 { 2148 {
2152 // Disable these buttons if they are PG (Teen) users 2149 // Disable these buttons if they are PG (Teen) users
2153 mPublishHelpButton->setVisible(FALSE); 2150 mPublishHelpButton->setVisible(FALSE);