SL-9665 FIXED [EEP] "Rename" greyed out for assets in My Environments
parent
8d627de478
commit
2ee39e7df0
|
|
@ -7021,6 +7021,16 @@ BOOL LLSettingsBridge::renameItem(const std::string& new_name)
|
|||
return LLItemBridge::renameItem(new_name);
|
||||
}
|
||||
|
||||
BOOL LLSettingsBridge::isItemRenameable() const
|
||||
{
|
||||
LLViewerInventoryItem* item = getItem();
|
||||
if (item)
|
||||
{
|
||||
return (item->getPermissions().allowModifyBy(gAgent.getID()));
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
bool LLSettingsBridge::canUpdateParcel() const
|
||||
{
|
||||
return LLEnvironment::instance().canAgentUpdateParcelEnvironment();
|
||||
|
|
|
|||
|
|
@ -625,6 +625,7 @@ public:
|
|||
virtual BOOL isMultiPreviewAllowed() { return FALSE; }
|
||||
virtual void buildContextMenu(LLMenuGL& menu, U32 flags);
|
||||
virtual BOOL renameItem(const std::string& new_name);
|
||||
virtual BOOL isItemRenameable() const;
|
||||
virtual LLSettingsType::type_e getSettingsType() const { return mSettingsType; }
|
||||
|
||||
protected:
|
||||
|
|
|
|||
Loading…
Reference in New Issue