Skip to content
Snippets Groups Projects
Commit 2073945b authored by Nyx (Neal Orman)'s avatar Nyx (Neal Orman)
Browse files
parents 92b569a6 d258883b
No related branches found
No related tags found
No related merge requests found
...@@ -181,6 +181,10 @@ void LLPanelOutfitsInventory::onNew() ...@@ -181,6 +181,10 @@ void LLPanelOutfitsInventory::onNew()
{ {
const std::string& outfit_name = LLViewerFolderType::lookupNewCategoryName(LLFolderType::FT_OUTFIT); const std::string& outfit_name = LLViewerFolderType::lookupNewCategoryName(LLFolderType::FT_OUTFIT);
LLUUID outfit_folder = gAgentWearables.makeNewOutfitLinks(outfit_name); LLUUID outfit_folder = gAgentWearables.makeNewOutfitLinks(outfit_name);
if (mAppearanceTabs)
{
mAppearanceTabs->selectTabByName("outfitslist_tab");
}
} }
void LLPanelOutfitsInventory::onSelectionChange(const std::deque<LLFolderViewItem*> &items, BOOL user_action) void LLPanelOutfitsInventory::onSelectionChange(const std::deque<LLFolderViewItem*> &items, BOOL user_action)
...@@ -412,8 +416,7 @@ BOOL LLPanelOutfitsInventory::isActionEnabled(const LLSD& userdata) ...@@ -412,8 +416,7 @@ BOOL LLPanelOutfitsInventory::isActionEnabled(const LLSD& userdata)
return (getCorrectListenerForAction() != NULL) && hasItemsSelected(); return (getCorrectListenerForAction() != NULL) && hasItemsSelected();
} }
if (command_name == "wear" || if (command_name == "wear")
command_name == "make_outfit")
{ {
const BOOL is_my_outfits = (mActivePanel->getName() == "outfitslist_tab"); const BOOL is_my_outfits = (mActivePanel->getName() == "outfitslist_tab");
if (!is_my_outfits) if (!is_my_outfits)
...@@ -421,6 +424,10 @@ BOOL LLPanelOutfitsInventory::isActionEnabled(const LLSD& userdata) ...@@ -421,6 +424,10 @@ BOOL LLPanelOutfitsInventory::isActionEnabled(const LLSD& userdata)
return FALSE; return FALSE;
} }
} }
if (command_name == "make_outfit")
{
return TRUE;
}
if (command_name == "edit" || if (command_name == "edit" ||
command_name == "add" command_name == "add"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment