summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorMnikolenko Productengine <mnikolenko@productengine.com>2017-06-14 11:29:30 +0300
committerMnikolenko Productengine <mnikolenko@productengine.com>2017-06-14 11:29:30 +0300
commitc2363c3ae95c38a6ed175375d5af638d64acef22 (patch)
treeec426cc73769c9608f6b1c5939cb5ce8a09d6156 /indra/newview
parentbbfe5ec2a9a9da9f9863e61ec0da681c0eea109a (diff)
MAINT-7489 FIXED Viewer may silently empty trash without the users request under obscure inventory folder states
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llinventorymodel.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/indra/newview/llinventorymodel.cpp b/indra/newview/llinventorymodel.cpp
index 0ccaa1992d..dc75e09ad9 100644
--- a/indra/newview/llinventorymodel.cpp
+++ b/indra/newview/llinventorymodel.cpp
@@ -462,12 +462,8 @@ void LLInventoryModel::consolidateForType(const LLUUID& main_id, LLFolderType::E
}
// Purge the emptied folder
- // Note: we'd like to use purgeObject() but it doesn't cleanly eliminate the folder
- // which leads to issues further down the road when the folder is found again
- //purgeObject(folder_id);
- // We remove the folder and empty the trash instead which seems to work
- removeCategory(folder_id);
- gInventory.emptyFolderType("", LLFolderType::FT_TRASH);
+ removeCategory(folder_id);
+ remove_inventory_category(folder_id, NULL);
}
}