Skip to content
Snippets Groups Projects
Commit 504509c2 authored by andreykproductengine's avatar andreykproductengine
Browse files

MAINT-3789 FIXED When moving items between inventory folders, the moved item...

MAINT-3789 FIXED When moving items between inventory folders, the moved item is no longer highlighted in the new folder.
parent 0fb8400e
No related branches found
No related tags found
No related merge requests found
...@@ -529,6 +529,14 @@ void LLInventoryPanel::modelChanged(U32 mask) ...@@ -529,6 +529,14 @@ void LLInventoryPanel::modelChanged(U32 mask)
// Item is to be moved and we found its new parent in the panel's directory, so move the item's UI. // Item is to be moved and we found its new parent in the panel's directory, so move the item's UI.
view_item->addToFolder(new_parent); view_item->addToFolder(new_parent);
addItemID(viewmodel_item->getUUID(), view_item); addItemID(viewmodel_item->getUUID(), view_item);
if (mInventory)
{
const LLUUID trash_id = mInventory->findCategoryUUIDForType(LLFolderType::FT_TRASH);
if (trash_id != model_item->getParentUUID() && (mask & LLInventoryObserver::INTERNAL) && new_parent->isOpen())
{
setSelection(item_id, FALSE);
}
}
} }
else else
{ {
......
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