From 8d10a21a7af872ed2f4f20de7462f543fe360d7e Mon Sep 17 00:00:00 2001 From: Lirusaito Date: Thu, 30 May 2013 19:56:49 -0400 Subject: [PATCH] One more fix for removing system folders, thanks Swiftkill! --- indra/newview/llviewerinventory.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/indra/newview/llviewerinventory.cpp b/indra/newview/llviewerinventory.cpp index 165e22201..5f347f8d8 100644 --- a/indra/newview/llviewerinventory.cpp +++ b/indra/newview/llviewerinventory.cpp @@ -608,11 +608,13 @@ void LLViewerInventoryCategory::removeFromServer( void ) llinfos << "Removing inventory category " << mUUID << " from server." << llendl; // communicate that change with the server. +#ifndef DELETE_SYSTEM_FOLDERS if(LLFolderType::lookupIsProtectedType(mPreferredType)) { LLNotificationsUtil::add("CannotRemoveProtectedCategories"); return; } +#endif LLInventoryModel::LLCategoryUpdate up(mParentUUID, -1); gInventory.accountForUpdate(up);