InventoryTree under the GUI objects bombs when you attempt to wear a folder

Description

When using the GUI component Inventory tree, its popupmenu allows you select a "wear" command when the item in the tree selected is of type InventoryFolder.

This throws an exception because the defaultMenuItem_Click event handler is attempting to cast whatever it is given as an object of type "InventoryItem".

seems to you will need to recurse that folders items prior to attaching them, and pass each to client.appearance.attach function. would do it myself but I'm lazy, so i'm just gonna add a quick workaround to keep the error from happening.

Steps to Reproduce

Create an instance InventoryTree on a form.
Connect to your account on SL or OSGrid.
Right click on an inventory folder, and attempt to attach it.

Activity

Show:
Lucius Sirnah
February 22, 2010, 7:10 PM

will include this with an additional bugfix to another wearable problem in another entry. sorry for the extra garbage in your bug tracking system.

Lucius Sirnah
February 23, 2010, 2:52 PM

Decided tp reopen this. This bug occurs because the code attempts to typecast an InventoryFolder as InventoryItem. No check is done to avert this issue.

Assignee

Unassigned

Reporter

Lucius Sirnah

Severity

Showstopper

Environment

.NET / Windows32

Fixed in Revision

None

Components

Affects versions

Priority

Critical
Configure