One more fix for removing system folders, thanks Swiftkill!
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user