diff options
author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2022-07-11 16:46:19 +0300 |
---|---|---|
committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2022-07-11 16:46:19 +0300 |
commit | caa5b92fb77f55360032a3dac10385c84b457cbf (patch) | |
tree | d8a1914098db44c18dee29f346697b3eab40770d /indra/newview | |
parent | 6fc22df480d0c30531b66651a3afcdb44e66781c (diff) |
SL-17665 additional checks to avoid moving protected folders
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llinventoryfunctions.cpp | 4 | ||||
-rw-r--r-- | indra/newview/skins/default/xui/en/notifications.xml | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/indra/newview/llinventoryfunctions.cpp b/indra/newview/llinventoryfunctions.cpp index d8a4340254..27edc8148e 100644 --- a/indra/newview/llinventoryfunctions.cpp +++ b/indra/newview/llinventoryfunctions.cpp @@ -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; } diff --git a/indra/newview/skins/default/xui/en/notifications.xml b/indra/newview/skins/default/xui/en/notifications.xml index 0a3826123c..1ee0d9c64a 100644 --- a/indra/newview/skins/default/xui/en/notifications.xml +++ b/indra/newview/skins/default/xui/en/notifications.xml @@ -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/> |