Skip to content
Snippets Groups Projects
Commit 007939f0 authored by Andrey Kleshchev's avatar Andrey Kleshchev
Browse files

SL-18939 Cannot copy inventory folders with copiable links

parent 30678472
No related branches found
No related tags found
No related merge requests found
...@@ -2140,6 +2140,7 @@ bool LLItemBridge::isItemCopyable(bool can_copy_as_link) const ...@@ -2140,6 +2140,7 @@ bool LLItemBridge::isItemCopyable(bool can_copy_as_link) const
static LLCachedControl<bool> inventory_linking(gSavedSettings, "InventoryLinking", true); static LLCachedControl<bool> inventory_linking(gSavedSettings, "InventoryLinking", true);
return (can_copy_as_link && inventory_linking) return (can_copy_as_link && inventory_linking)
|| (mIsLink && inventory_linking)
|| item->getPermissions().allowCopyBy(gAgent.getID()); || item->getPermissions().allowCopyBy(gAgent.getID());
} }
...@@ -2346,6 +2347,12 @@ BOOL LLFolderBridge::isUpToDate() const ...@@ -2346,6 +2347,12 @@ BOOL LLFolderBridge::isUpToDate() const
bool LLFolderBridge::isItemCopyable(bool can_copy_as_link) const bool LLFolderBridge::isItemCopyable(bool can_copy_as_link) const
{ {
if (can_copy_as_link && !LLFolderType::lookupIsProtectedType(getPreferredType()))
{
// Can copy and paste unprotected folders as links
return true;
}
// Folders are copyable if items in them are, recursively, copyable. // Folders are copyable if items in them are, recursively, copyable.
// Get the content of the folder // Get the content of the folder
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment