From 18ee1f48f9f5b8559385b88f86ab8c9bccfcb3c8 Mon Sep 17 00:00:00 2001 From: Leyla Farazha Date: Fri, 12 Aug 2011 15:16:53 -0700 Subject: EXP-1069 Outbox sync should auto-delete empty folders --- indra/newview/llpanelmarketplaceoutbox.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/indra/newview/llpanelmarketplaceoutbox.cpp b/indra/newview/llpanelmarketplaceoutbox.cpp index 88feb05114..913a62b897 100644 --- a/indra/newview/llpanelmarketplaceoutbox.cpp +++ b/indra/newview/llpanelmarketplaceoutbox.cpp @@ -42,6 +42,7 @@ #include "llagent.h" #include "llviewermedia.h" #include "llfolderview.h" +#include "llinventoryfunctions.h" static LLRegisterPanelClassWrapper t_panel_marketplace_outbox("panel_marketplace_outbox"); @@ -198,7 +199,13 @@ public: { // Complete success llinfos << "success" << llendl; - + LLSD imported_list = content["imported"]; + LLSD::array_const_iterator it = imported_list.beginArray(); + for ( ; it != imported_list.endArray(); ++it) + { + LLUUID imported_folder = (*it).asUUID(); + remove_category(&gInventory, imported_folder); + } } else { -- cgit v1.2.3