All submissions to this site are governed by the Second Life Viewer Contribution Agreement. By submitting patches and other information using this site, you acknowledge that you have read, understood, and agreed to those terms.

Review Board 1.6.11

Welcome to the Second Life Viewer Code Review tool.
See the documentation on our wiki for how to use this site.

STORM-1543 During busy mode inventory offers get silently deleted instead of thrown into trash

Review Request #444 - Created Aug. 19, 2011 and submitted

Vadim ProductEngine Reviewers
viewer
STORM-1543 richard.linden
None viewer-development
In busy mode offered inventory items are now moved to trash.

There were two bugs:

1. When auto-discarding inventory offers we looked up missing Busy button
(i.e. a button having index=3) in the inventory offer notification dialog
template. Failure to find the button resulted in ignoring inventory offers.

Fixed that by "auto-clicking" the existing Discard button.

2. It turned out impossible to properly remove an inventory item
from within LLDiscardAgentOffer::done(), because that would lead to
nested LLInventoryModel::notifyObservers() calls.

Fixed that by deferring removal until the next LLAppViewer::idle() iteration.

 
Review request changed
Updated (Aug. 25, 2011, 2:23 p.m.)
In response to Richard's feedback, removed invalid IOR_BUSY response option.
Ship it!
Posted (Aug. 25, 2011, 3:26 p.m.)
great!