diff options
author | Diva Canto | 2010-06-29 04:38:15 -0700 |
---|---|---|
committer | Diva Canto | 2010-06-29 04:38:15 -0700 |
commit | 08e338979062268aa6c82fbe83903de5bcd77f30 (patch) | |
tree | 461e5cc6e06c87a33d2cd01b0df9fbc426377acf /OpenSim/Services/InventoryService/XInventoryService.cs | |
parent | Bug fix in HG standalone: wrong handler in the in module. Fixed a few broken ... (diff) | |
download | opensim-SC_OLD-08e338979062268aa6c82fbe83903de5bcd77f30.zip opensim-SC_OLD-08e338979062268aa6c82fbe83903de5bcd77f30.tar.gz opensim-SC_OLD-08e338979062268aa6c82fbe83903de5bcd77f30.tar.bz2 opensim-SC_OLD-08e338979062268aa6c82fbe83903de5bcd77f30.tar.xz |
Buglet fix in HG inventory. Make sure that GetRootFolder for non-HG xinventory is the folder "My Inventory". Also changed the Suitcase folder name to "My Suitcase".
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Services/InventoryService/XInventoryService.cs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/OpenSim/Services/InventoryService/XInventoryService.cs b/OpenSim/Services/InventoryService/XInventoryService.cs index af831fd..f48bf60 100644 --- a/OpenSim/Services/InventoryService/XInventoryService.cs +++ b/OpenSim/Services/InventoryService/XInventoryService.cs | |||
@@ -200,7 +200,14 @@ namespace OpenSim.Services.InventoryService | |||
200 | if (folders.Length == 0) | 200 | if (folders.Length == 0) |
201 | return null; | 201 | return null; |
202 | 202 | ||
203 | return ConvertToOpenSim(folders[0]); | 203 | XInventoryFolder root = null; |
204 | foreach (XInventoryFolder folder in folders) | ||
205 | if (folder.folderName == "My Inventory") | ||
206 | root = folder; | ||
207 | if (folders == null) // oops | ||
208 | root = folders[0]; | ||
209 | |||
210 | return ConvertToOpenSim(root); | ||
204 | } | 211 | } |
205 | 212 | ||
206 | public virtual InventoryFolderBase GetFolderForType(UUID principalID, AssetType type) | 213 | public virtual InventoryFolderBase GetFolderForType(UUID principalID, AssetType type) |