diff options
| author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2023-10-14 02:40:59 +0300 |
|---|---|---|
| committer | akleshchev <117672381+akleshchev@users.noreply.github.com> | 2023-10-17 21:26:39 +0300 |
| commit | a62f5bfac1e55455c67e1c36eb388af99795dab6 (patch) | |
| tree | 46fed0ab92d4b9e34c2d7e7c6abfdd7c7498a238 /indra/newview/llinventorygallery.cpp | |
| parent | 19ac7d18e811748c9f9c756a7830429714bc8ca2 (diff) | |
SL-20232 Allow deletion of worn items #1
Diffstat (limited to 'indra/newview/llinventorygallery.cpp')
| -rw-r--r-- | indra/newview/llinventorygallery.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/newview/llinventorygallery.cpp b/indra/newview/llinventorygallery.cpp index d4ca58f778..9074c8466a 100644 --- a/indra/newview/llinventorygallery.cpp +++ b/indra/newview/llinventorygallery.cpp @@ -1685,7 +1685,7 @@ BOOL LLInventoryGallery::canCut() const return FALSE; } } - else if (!get_is_item_removable(&gInventory, id)) + else if (!get_is_item_removable(&gInventory, id, true)) { return FALSE; } @@ -1880,7 +1880,7 @@ void LLInventoryGallery::onDelete(const LLSD& notification, const LLSD& response } else { - if (get_is_item_removable(&gInventory, id)) + if (get_is_item_removable(&gInventory, id, true)) { gInventory.removeItem(id); } @@ -1925,7 +1925,7 @@ bool LLInventoryGallery::canDeleteSelection() return false; } } - else if (!get_is_item_removable(&gInventory, id)) + else if (!get_is_item_removable(&gInventory, id, true)) { return false; } |
