diff options
| author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2022-03-30 18:29:33 +0300 | 
|---|---|---|
| committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2022-03-30 18:29:33 +0300 | 
| commit | 322320a90fdfa61341090bd638cef0679bfc84b5 (patch) | |
| tree | 72db7dc647909a581ba3398132c46094cd426ab9 /indra | |
| parent | 0d280ae11299f54eb81f7e978bf40fcb8d1f58fe (diff) | |
SL-16668 Enable/disable appropriate menu items in context menu
Diffstat (limited to 'indra')
| -rw-r--r-- | indra/newview/llfloaterland.cpp | 6 | ||||
| -rw-r--r-- | indra/newview/llfloaterland.h | 1 | ||||
| -rw-r--r-- | indra/newview/llfloaterregioninfo.cpp | 6 | 
3 files changed, 9 insertions, 4 deletions
| diff --git a/indra/newview/llfloaterland.cpp b/indra/newview/llfloaterland.cpp index 04133f2710..ff2384e382 100644 --- a/indra/newview/llfloaterland.cpp +++ b/indra/newview/llfloaterland.cpp @@ -3054,7 +3054,8 @@ BOOL LLPanelLandCovenant::postBuild()  {  	mLastRegionID = LLUUID::null;  	mNextUpdateTime = 0; - +    mTextEstateOwner = getChild<LLTextBox>("estate_owner_text"); +    mTextEstateOwner->setIsFriendCallback(LLAvatarActions::isFriend);  	return TRUE;  } @@ -3162,8 +3163,7 @@ void LLPanelLandCovenant::updateEstateOwnerName(const std::string& name)  	LLPanelLandCovenant* self = LLFloaterLand::getCurrentPanelLandCovenant();  	if (self)  	{ -		LLTextBox* editor = self->getChild<LLTextBox>("estate_owner_text"); -		if (editor) editor->setText(name); +		self->mTextEstateOwner->setText(name);  	}  } diff --git a/indra/newview/llfloaterland.h b/indra/newview/llfloaterland.h index 5d9b411f04..684950d88b 100644 --- a/indra/newview/llfloaterland.h +++ b/indra/newview/llfloaterland.h @@ -413,6 +413,7 @@ protected:  private:  	LLUUID mLastRegionID;  	F64 mNextUpdateTime; //seconds since client start +    LLTextBox* mTextEstateOwner;  };  #endif diff --git a/indra/newview/llfloaterregioninfo.cpp b/indra/newview/llfloaterregioninfo.cpp index 19080f05c0..1390f56ea7 100644 --- a/indra/newview/llfloaterregioninfo.cpp +++ b/indra/newview/llfloaterregioninfo.cpp @@ -47,6 +47,7 @@  #include "llagent.h"  #include "llappviewer.h" +#include "llavataractions.h"  #include "llavatarname.h"  #include "llfloateravatarpicker.h"  #include "llbutton.h"  @@ -1826,7 +1827,7 @@ void LLPanelEstateInfo::updateControls(LLViewerRegion* region)  	setCtrlsEnabled(god || owner || manager);  	getChildView("apply_btn")->setEnabled(FALSE); - +    getChildView("estate_owner")->setEnabled(TRUE);  	getChildView("message_estate_btn")->setEnabled(god || owner || manager);  	getChildView("kick_user_from_estate_btn")->setEnabled(god || owner || manager); @@ -1888,6 +1889,8 @@ BOOL LLPanelEstateInfo::postBuild()  	getChild<LLUICtrl>("externally_visible_radio")->setFocus(TRUE); +    getChild<LLTextBox>("estate_owner")->setIsFriendCallback(LLAvatarActions::isFriend); +  	return LLPanelRegionInfo::postBuild();  } @@ -2132,6 +2135,7 @@ BOOL LLPanelEstateCovenant::postBuild()  {  	mEstateNameText = getChild<LLTextBox>("estate_name_text");  	mEstateOwnerText = getChild<LLTextBox>("estate_owner_text"); +    mEstateOwnerText->setIsFriendCallback(LLAvatarActions::isFriend);  	mLastModifiedText = getChild<LLTextBox>("covenant_timestamp_text");  	mEditor = getChild<LLViewerTextEditor>("covenant_editor");  	LLButton* reset_button = getChild<LLButton>("reset_covenant"); | 
