summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMnikolenko Productengine <mnikolenko@productengine.com>2016-05-23 17:07:48 +0300
committerMnikolenko Productengine <mnikolenko@productengine.com>2016-05-23 17:07:48 +0300
commitaddbfaf1c774011f3e55a1106f0b83153b7b8568 (patch)
tree9535b20a11c7f8b841319c16772ed0109f8c767a
parent5bee6f1e5e5ec9d25283ecf1815b57e5921f2c47 (diff)
MAINT-6431 Trash button is not functional in in Visual Outfit Browser
-rwxr-xr-xindra/newview/llpaneloutfitsinventory.cpp7
-rwxr-xr-xindra/newview/llpaneloutfitsinventory.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/indra/newview/llpaneloutfitsinventory.cpp b/indra/newview/llpaneloutfitsinventory.cpp
index eb88abb2bf..c0c1adddf3 100755
--- a/indra/newview/llpaneloutfitsinventory.cpp
+++ b/indra/newview/llpaneloutfitsinventory.cpp
@@ -236,6 +236,7 @@ void LLPanelOutfitsInventory::initListCommandsHandlers()
mListCommands = getChild<LLPanel>("bottom_panel");
mListCommands->childSetAction("wear_btn", boost::bind(&LLPanelOutfitsInventory::onWearButtonClick, this));
mMyOutfitsPanel->childSetAction("trash_btn", boost::bind(&LLPanelOutfitsInventory::onTrashButtonClick, this));
+ mOutfitGalleryPanel->childSetAction("trash_btn", boost::bind(&LLPanelOutfitsInventory::onGalleryTrashButtonClick, this));
}
void LLPanelOutfitsInventory::updateListCommands()
@@ -247,6 +248,7 @@ void LLPanelOutfitsInventory::updateListCommands()
LLButton* wear_btn = mListCommands->getChild<LLButton>("wear_btn");
mMyOutfitsPanel->childSetEnabled("trash_btn", trash_enabled);
+ mOutfitGalleryPanel->childSetEnabled("trash_btn", trash_enabled);
wear_btn->setEnabled(wear_enabled);
wear_btn->setVisible(wear_visible);
mSaveComboBtn->setMenuItemEnabled("save_outfit", make_outfit_enabled);
@@ -258,6 +260,11 @@ void LLPanelOutfitsInventory::onTrashButtonClick()
mMyOutfitsPanel->removeSelected();
}
+void LLPanelOutfitsInventory::onGalleryTrashButtonClick()
+{
+ mOutfitGalleryPanel->removeSelected();
+}
+
bool LLPanelOutfitsInventory::isActionEnabled(const LLSD& userdata)
{
return mActivePanel && mActivePanel->isActionEnabled(userdata);
diff --git a/indra/newview/llpaneloutfitsinventory.h b/indra/newview/llpaneloutfitsinventory.h
index 8c873df038..efb9524a21 100755
--- a/indra/newview/llpaneloutfitsinventory.h
+++ b/indra/newview/llpaneloutfitsinventory.h
@@ -91,6 +91,7 @@ protected:
void onWearButtonClick();
void showGearMenu();
void onTrashButtonClick();
+ void onGalleryTrashButtonClick();
bool isActionEnabled(const LLSD& userdata);
void setWearablesLoading(bool val);
void onWearablesLoaded();