From df9845a283d34c65d47b858a1c45934ee2ea6b3b Mon Sep 17 00:00:00 2001 From: Oren Hurvitz Date: Mon, 24 Mar 2014 18:00:59 +0200 Subject: When a user logs-in, automatically create the Suitcase folder This is only done if the Suitcase Inventory Service is used. Previously the Suitcase was created at a later time, which meant that it wasn't shown in the viewer until the viewer was restarted. --- .../HypergridService/HGSuitcaseInventoryService.cs | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) (limited to 'OpenSim/Services/HypergridService/HGSuitcaseInventoryService.cs') diff --git a/OpenSim/Services/HypergridService/HGSuitcaseInventoryService.cs b/OpenSim/Services/HypergridService/HGSuitcaseInventoryService.cs index 90ce44a..1608039 100644 --- a/OpenSim/Services/HypergridService/HGSuitcaseInventoryService.cs +++ b/OpenSim/Services/HypergridService/HGSuitcaseInventoryService.cs @@ -215,25 +215,17 @@ namespace OpenSim.Services.HypergridService if (suitcase == null) { m_log.ErrorFormat("[HG SUITCASE INVENTORY SERVICE]: Unable to create suitcase folder"); + return null; } - else - { - m_Database.StoreFolder(suitcase); - - // Create System folders - CreateSystemFolders(principalID, suitcase.folderID); + + m_Database.StoreFolder(suitcase); - SetAsNormalFolder(suitcase); - - return ConvertToOpenSim(suitcase); - } - } - else - { - return ConvertToOpenSim(suitcase); + CreateSystemFolders(principalID, suitcase.folderID); } - return null; + SetAsNormalFolder(suitcase); + + return ConvertToOpenSim(suitcase); } protected void CreateSystemFolders(UUID principalID, UUID rootID) -- cgit v1.1