MAINT-1723 FIXED Restore snapshots from trash to Photo album folder.

meow-7.2.2
Mnikolenko ProductEngine 2015-06-11 13:31:59 +03:00
parent 70a31d5c6b
commit ec3c0c4ae1
1 changed files with 3 additions and 1 deletions

View File

@ -1572,7 +1572,9 @@ void LLItemBridge::restoreItem()
if(item)
{
LLInventoryModel* model = getInventoryModel();
const LLUUID new_parent = model->findCategoryUUIDForType(LLFolderType::assetTypeToFolderType(item->getType()));
bool is_snapshot = (item->getInventoryType() == LLInventoryType::IT_SNAPSHOT);
const LLUUID new_parent = model->findCategoryUUIDForType(is_snapshot? LLFolderType::FT_SNAPSHOT_CATEGORY : LLFolderType::assetTypeToFolderType(item->getType()));
// do not restamp on restore.
LLInvFVBridge::changeItemParent(model, item, new_parent, FALSE);
}