One more fix for removing system folders, thanks Swiftkill!

This commit is contained in:
Lirusaito
2013-05-30 19:56:49 -04:00
parent 59e7b1c777
commit 8d10a21a7a

View File

@@ -608,11 +608,13 @@ void LLViewerInventoryCategory::removeFromServer( void )
llinfos << "Removing inventory category " << mUUID << " from server." llinfos << "Removing inventory category " << mUUID << " from server."
<< llendl; << llendl;
// communicate that change with the server. // communicate that change with the server.
#ifndef DELETE_SYSTEM_FOLDERS
if(LLFolderType::lookupIsProtectedType(mPreferredType)) if(LLFolderType::lookupIsProtectedType(mPreferredType))
{ {
LLNotificationsUtil::add("CannotRemoveProtectedCategories"); LLNotificationsUtil::add("CannotRemoveProtectedCategories");
return; return;
} }
#endif
LLInventoryModel::LLCategoryUpdate up(mParentUUID, -1); LLInventoryModel::LLCategoryUpdate up(mParentUUID, -1);
gInventory.accountForUpdate(up); gInventory.accountForUpdate(up);