diff options
author | angela <angela@lindenlab.com> | 2010-02-03 13:56:39 +0800 |
---|---|---|
committer | angela <angela@lindenlab.com> | 2010-02-03 13:56:39 +0800 |
commit | 460ec67b97bc210c0a03483dd0b754e92fabe806 (patch) | |
tree | 90bd49da9c7e23e6b90ebf04b8fcc9847b4f414e /indra/newview/llsidepanelinventory.cpp | |
parent | 1094fa28c618370af9a95cf823cbd9287c92dd24 (diff) | |
parent | 86923afd27d76734cf1274fa788928230c232a4d (diff) |
resolve merge in llsidepanelinventory.cpp
Diffstat (limited to 'indra/newview/llsidepanelinventory.cpp')
-rw-r--r-- | indra/newview/llsidepanelinventory.cpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/indra/newview/llsidepanelinventory.cpp b/indra/newview/llsidepanelinventory.cpp index 9614be8240..7b923f4b0b 100644 --- a/indra/newview/llsidepanelinventory.cpp +++ b/indra/newview/llsidepanelinventory.cpp @@ -164,7 +164,21 @@ void LLSidepanelInventory::onWearButtonClicked() void LLSidepanelInventory::onPlayButtonClicked() { - performActionOnSelection("open"); + const LLInventoryItem *item = getSelectedItem(); + if (!item) + { + return; + } + + switch(item->getInventoryType()) + { + case LLInventoryType::IT_GESTURE: + performActionOnSelection("play"); + break; + default: + performActionOnSelection("activate"); + break; + } } void LLSidepanelInventory::onTeleportButtonClicked() |