SL-16668 Enable/disable appropriate menu items in context menu
parent
0d280ae112
commit
322320a90f
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -413,6 +413,7 @@ protected:
|
|||
private:
|
||||
LLUUID mLastRegionID;
|
||||
F64 mNextUpdateTime; //seconds since client start
|
||||
LLTextBox* mTextEstateOwner;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in New Issue