EXT-8918 FIXED Incorrect right-click options for library items

Library items have "Share" disabled.
meow-7.2.2
Loren Shih 2010-07-26 18:14:32 -04:00
parent 4a361046f3
commit 34ab18d0c2
1 changed files with 6 additions and 3 deletions

View File

@ -952,6 +952,8 @@ void LLInvFVBridge::purgeItem(LLInventoryModel *model, const LLUUID &uuid)
BOOL LLInvFVBridge::canShare() const
{
if (!isAgentInventory()) return FALSE;
const LLInventoryModel* model = getInventoryModel();
if (!model) return FALSE;
@ -963,9 +965,10 @@ BOOL LLInvFVBridge::canShare() const
return (BOOL)LLGiveInventory::isInventoryGiveAcceptable(item);
}
// All categories can be given.
const LLViewerInventoryCategory* cat = model->getCategory(mUUID);
return (cat != NULL);
// Categories can be given.
if (model->getCategory(mUUID)) return TRUE;
return FALSE;
}
// +=================================================+