diff options
author | Merov Linden <merov@lindenlab.com> | 2014-07-04 11:45:54 -0700 |
---|---|---|
committer | Merov Linden <merov@lindenlab.com> | 2014-07-04 11:45:54 -0700 |
commit | 18579f8eedb4d31ded2658dd5d8d1f82477a5d56 (patch) | |
tree | 26f9ee5fd14859b51f87c1cb221b3509a629d213 | |
parent | a00861b1691c37ed30ec16dd1bc84045f8d87dda (diff) |
DD-133 : Fixed. Add the original items to the list of things to update after action is performed.
-rwxr-xr-x | indra/newview/llinventoryfunctions.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/indra/newview/llinventoryfunctions.cpp b/indra/newview/llinventoryfunctions.cpp index 88967a4d39..84b8177e0d 100755 --- a/indra/newview/llinventoryfunctions.cpp +++ b/indra/newview/llinventoryfunctions.cpp @@ -2085,8 +2085,11 @@ void LLInventoryAction::onItemsRemovalConfirmation( const LLSD& notification, co void LLInventoryAction::buildMarketplaceFolders(LLFolderView* root) { // Make a list of all marketplace folders containing the elements in the selected list - // Once those elements are updated (cut, delete in particular but potentially any action), their originally - // containing marketplace listing might need to be udpated to reflect their new content accurately + // as well as the elements themselves. + // Once those elements are updated (cut, delete in particular but potentially any action), their + // containing folder will need to be updated as well as their initially containing folder. For + // instance, moving a stock folder from a listed folder to another will require an update of the + // target listing *and* the original listing. So we need to keep track of both. sMarketplaceFolders.clear(); const LLUUID &marketplacelistings_id = gInventory.findCategoryUUIDForType(LLFolderType::FT_MARKETPLACE_LISTINGS, false); std::set<LLFolderViewItem*> selected_items = root->getSelectionList(); @@ -2098,6 +2101,7 @@ void LLInventoryAction::buildMarketplaceFolders(LLFolderView* root) if (viewModel && gInventory.isObjectDescendentOf(viewModel->getInventoryObject()->getParentUUID(), marketplacelistings_id)) { sMarketplaceFolders.push_back(viewModel->getInventoryObject()->getParentUUID()); + sMarketplaceFolders.push_back(viewModel->getInventoryObject()->getUUID()); } } // Suppress dupes in the list so we won't update listings twice |