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."
|
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);
|
||||||
|
|||||||
Reference in New Issue
Block a user