diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Services/InventoryService/XInventoryService.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Services/InventoryService/XInventoryService.cs b/OpenSim/Services/InventoryService/XInventoryService.cs index f581f76..26c5b33 100644 --- a/OpenSim/Services/InventoryService/XInventoryService.cs +++ b/OpenSim/Services/InventoryService/XInventoryService.cs | |||
@@ -342,7 +342,6 @@ namespace OpenSim.Services.InventoryService | |||
342 | m_Database.DeleteFolders("folderID", x.folderID.ToString()); | 342 | m_Database.DeleteFolders("folderID", x.folderID.ToString()); |
343 | } | 343 | } |
344 | 344 | ||
345 | m_Database.DeleteItems("parentFolderID", folder.ID.ToString()); | ||
346 | 345 | ||
347 | return true; | 346 | return true; |
348 | } | 347 | } |
@@ -542,6 +541,9 @@ namespace OpenSim.Services.InventoryService | |||
542 | if (folder.Length < 1) | 541 | if (folder.Length < 1) |
543 | return false; | 542 | return false; |
544 | 543 | ||
544 | if (folder[0].type == (int)AssetType.TrashFolder) | ||
545 | return true; | ||
546 | |||
545 | UUID parentFolder = folder[0].parentFolderID; | 547 | UUID parentFolder = folder[0].parentFolderID; |
546 | 548 | ||
547 | while (parentFolder != UUID.Zero) | 549 | while (parentFolder != UUID.Zero) |