diff options
author | Loren Shih <seraph@lindenlab.com> | 2010-07-06 15:49:32 -0400 |
---|---|---|
committer | Loren Shih <seraph@lindenlab.com> | 2010-07-06 15:49:32 -0400 |
commit | 419bfb16fdd9b79d32736fd80652685a07f9e39f (patch) | |
tree | 4afafc0665ca3b486e2507369d9d214d40abf9ac /indra/newview/llpaneloutfitsinventory.cpp | |
parent | ced040f8aef5a764c2e6fb261d5bbecd4df75064 (diff) | |
parent | 7de36b3d4217f5ceee8b46a59983229b7af35981 (diff) |
automated merge
Diffstat (limited to 'indra/newview/llpaneloutfitsinventory.cpp')
-rw-r--r-- | indra/newview/llpaneloutfitsinventory.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/indra/newview/llpaneloutfitsinventory.cpp b/indra/newview/llpaneloutfitsinventory.cpp index c5d259e517..ca5679d5b0 100644 --- a/indra/newview/llpaneloutfitsinventory.cpp +++ b/indra/newview/llpaneloutfitsinventory.cpp @@ -282,10 +282,17 @@ void LLPanelOutfitsInventory::showGearMenu() void LLPanelOutfitsInventory::onTrashButtonClick() { - mMyOutfitsPanel->removeSelected(); + LLNotificationsUtil::add("DeleteOutfits", LLSD(), LLSD(), boost::bind(&LLPanelOutfitsInventory::onOutfitsRemovalConfirmation, this, _1, _2)); +} - updateListCommands(); - updateVerbs(); +void LLPanelOutfitsInventory::onOutfitsRemovalConfirmation(const LLSD& notification, const LLSD& response) +{ + S32 option = LLNotificationsUtil::getSelectedOption(notification, response); + if (option != 0) return; // canceled + + mMyOutfitsPanel->removeSelected(); + updateListCommands(); + updateVerbs(); } bool LLPanelOutfitsInventory::isActionEnabled(const LLSD& userdata) |