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/llinventoryfunctions.cpp | |
parent | 6fc22df480d0c30531b66651a3afcdb44e66781c (diff) |
SL-17665 additional checks to avoid moving protected folders
Diffstat (limited to 'indra/newview/llinventoryfunctions.cpp')
-rw-r--r-- | indra/newview/llinventoryfunctions.cpp | 4 |
1 files changed, 2 insertions, 2 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; } |