SL-17665 additional checks to avoid moving protected folders
parent
6fc22df480
commit
caa5b92fb7
|
|
@ -1880,7 +1880,7 @@ void move_items_to_folder(const LLUUID& new_cat_uuid, const uuid_vec_t& selected
|
|||
else
|
||||
{
|
||||
LLInventoryCategory* inv_cat = gInventory.getCategory(*it);
|
||||
if (inv_cat)
|
||||
if (inv_cat && !LLFolderType::lookupIsProtectedType(inv_cat->getPreferredType()))
|
||||
{
|
||||
gInventory.changeCategoryParent((LLViewerInventoryCategory*)inv_cat, new_cat_uuid, false);
|
||||
}
|
||||
|
|
@ -2646,7 +2646,7 @@ void LLInventoryAction::doToSelected(LLInventoryModel* model, LLFolderView* root
|
|||
if (selected_uuid_set.size() == 1)
|
||||
{
|
||||
LLInventoryCategory* inv_cat = gInventory.getCategory(*ids.begin());
|
||||
if (!inv_cat)
|
||||
if (!inv_cat || LLFolderType::lookupIsProtectedType(inv_cat->getPreferredType()))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11663,7 +11663,7 @@ This Region does not support environmental settings.
|
|||
|
||||
<notification
|
||||
icon="alertmodal.tga"
|
||||
label="Save Outfit"
|
||||
label="Save Environmental Settings"
|
||||
name="SaveSettingAs"
|
||||
type="alertmodal">
|
||||
<unique/>
|
||||
|
|
@ -11844,7 +11844,7 @@ Unpacking: [UNPACK_TIME]s [USIZE]KB
|
|||
|
||||
<notification
|
||||
icon="alertmodal.tga"
|
||||
label="Save Outfit"
|
||||
label="Create subfolder"
|
||||
name="CreateSubfolder"
|
||||
type="alertmodal">
|
||||
<unique/>
|
||||
|
|
|
|||
Loading…
Reference in New Issue