From c679ae3546ffe0f29330a2969460fa37807e23b6 Mon Sep 17 00:00:00 2001 From: Dmitry Zaporozhan Date: Mon, 1 Feb 2010 17:11:31 +0200 Subject: Fixed normal bug EXT-4768 - 'Play' btn does nothing to gesture in Inventory side panel. --HG-- branch : product-engine --- indra/newview/llsidepanelinventory.cpp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'indra/newview/llsidepanelinventory.cpp') diff --git a/indra/newview/llsidepanelinventory.cpp b/indra/newview/llsidepanelinventory.cpp index 5383158cd3..7b923f4b0b 100644 --- a/indra/newview/llsidepanelinventory.cpp +++ b/indra/newview/llsidepanelinventory.cpp @@ -164,7 +164,21 @@ void LLSidepanelInventory::onWearButtonClicked() void LLSidepanelInventory::onPlayButtonClicked() { - performActionOnSelection("activate"); + const LLInventoryItem *item = getSelectedItem(); + if (!item) + { + return; + } + + switch(item->getInventoryType()) + { + case LLInventoryType::IT_GESTURE: + performActionOnSelection("play"); + break; + default: + performActionOnSelection("activate"); + break; + } } void LLSidepanelInventory::onTeleportButtonClicked() -- cgit v1.2.3