merge from PE's viewer-release
commit
dc6c35e353
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -94,6 +94,7 @@ protected:
|
|||
void onWearButtonClick();
|
||||
void showGearMenu();
|
||||
void onTrashButtonClick();
|
||||
void onOutfitsRemovalConfirmation(const LLSD& notification, const LLSD& response);
|
||||
bool isActionEnabled(const LLSD& userdata);
|
||||
void setWearablesLoading(bool val);
|
||||
void onWearablesLoaded();
|
||||
|
|
|
|||
|
|
@ -815,6 +815,17 @@ Delete pick <nolink>[PICK]</nolink>?
|
|||
yestext="OK"/>
|
||||
</notification>
|
||||
|
||||
<notification
|
||||
icon="alertmodal.tga"
|
||||
name="DeleteOutfits"
|
||||
type="alertmodal">
|
||||
Delete the selected outfit/s?
|
||||
<usetemplate
|
||||
name="okcancelbuttons"
|
||||
notext="Cancel"
|
||||
yestext="OK"/>
|
||||
</notification>
|
||||
|
||||
<notification
|
||||
icon="alertmodal.tga"
|
||||
name="PromptGoToEventsPage"
|
||||
|
|
|
|||
Loading…
Reference in New Issue