summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorLeyla Farazha <leyla@lindenlab.com>2011-08-16 15:58:34 -0700
committerLeyla Farazha <leyla@lindenlab.com>2011-08-16 15:58:34 -0700
commit2d4d7e7ca36f8f3a6636d13410d3ca940e7d3498 (patch)
tree115005901bfee57f6046f11694d94e039fed348d /indra
parent6f7132ca77d0507f2744bea5050a2ab1135cd88a (diff)
EXP-1093 User can place multiple copies of a no-copy item in merchant outbox to sell and can cause viewer to crash
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llinventoryfunctions.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/newview/llinventoryfunctions.cpp b/indra/newview/llinventoryfunctions.cpp
index b5be0a971d..8632e40c54 100644
--- a/indra/newview/llinventoryfunctions.cpp
+++ b/indra/newview/llinventoryfunctions.cpp
@@ -486,6 +486,7 @@ void move_to_outbox_cb(const LLSD& notification, const LLSD& response)
if (dest_folder_id == gInventory.findCategoryUUIDForType(LLFolderType::FT_OUTBOX, false))
{
dest_folder_id = gInventory.createNewCategory(dest_folder_id, LLFolderType::FT_NONE, viitem->getName());
+ gInventory.notifyObservers();
}
LLUUID parent = viitem->getParentUUID();
@@ -542,6 +543,7 @@ void copy_item_to_outbox(LLInventoryItem* inv_item, LLUUID dest_folder, const LL
if (dest_folder == gInventory.findCategoryUUIDForType(LLFolderType::FT_OUTBOX, false))
{
dest_folder = gInventory.createNewCategory(dest_folder, LLFolderType::FT_NONE, inv_item->getName());
+ gInventory.notifyObservers();
}
copy_inventory_item(
@@ -567,6 +569,7 @@ void copy_item_to_outbox(LLInventoryItem* inv_item, LLUUID dest_folder, const LL
void copy_folder_to_outbox(LLInventoryCategory* inv_cat, const LLUUID& dest_folder, const LLUUID& top_level_folder)
{
LLUUID new_folder_id = gInventory.createNewCategory(dest_folder, LLFolderType::FT_NONE, inv_cat->getName());
+ gInventory.notifyObservers();
LLInventoryModel::cat_array_t* cat_array;
LLInventoryModel::item_array_t* item_array;