diff options
author | Mnikolenko ProductEngine <mnikolenko@productengine.com> | 2015-04-24 13:06:35 +0300 |
---|---|---|
committer | Mnikolenko ProductEngine <mnikolenko@productengine.com> | 2015-04-24 13:06:35 +0300 |
commit | dd42e27400cf7838bf9628abef76eb32c4150097 (patch) | |
tree | ba89b42a9128bb9b2501c9b8e8cecf11716dbebf | |
parent | 0f9ed81563ec8a0e6e2b61fb5a469c2350c794c6 (diff) |
MAINT-2577 FIXED Cannot detach wearables by pressing Enter in inventory
-rwxr-xr-x | indra/newview/llinventorybridge.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/indra/newview/llinventorybridge.cpp b/indra/newview/llinventorybridge.cpp index 1dc5558555..a160d88b7d 100755 --- a/indra/newview/llinventorybridge.cpp +++ b/indra/newview/llinventorybridge.cpp @@ -5673,12 +5673,8 @@ void LLWearableBridge::performAction(LLInventoryModel* model, std::string action void LLWearableBridge::openItem() { - LLViewerInventoryItem* item = getItem(); - - if (item) - { - LLInvFVBridgeAction::doAction(item->getType(),mUUID,getInventoryModel()); - } + performAction(getInventoryModel(), + get_is_item_worn(mUUID) ? "take_off" : "wear"); } void LLWearableBridge::buildContextMenu(LLMenuGL& menu, U32 flags) |