Skip to content
Snippets Groups Projects
Commit 2b0a997b authored by Loren Shih's avatar Loren Shih
Browse files

Small fix for updating enabled state of Wear/Edit buttons.

--HG--
branch : avatar-pipeline
parent 08cbeea3
No related branches found
No related tags found
No related merge requests found
...@@ -148,12 +148,16 @@ void LLPanelOutfitsInventory::onNew() ...@@ -148,12 +148,16 @@ 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);
/*
getRootFolder()->setSelectionByID(outfit_folder, TRUE); getRootFolder()->setSelectionByID(outfit_folder, TRUE);
getRootFolder()->setNeedsAutoRename(TRUE); getRootFolder()->setNeedsAutoRename(TRUE);
getRootFolder()->startRenamingSelectedItem();
*/
} }
void LLPanelOutfitsInventory::onSelectionChange(const std::deque<LLFolderViewItem*> &items, BOOL user_action) void LLPanelOutfitsInventory::onSelectionChange(const std::deque<LLFolderViewItem*> &items, BOOL user_action)
{ {
updateListCommands();
updateParent(); updateParent();
} }
......
...@@ -140,6 +140,7 @@ void LLSidepanelAppearance::onOpen(const LLSD& key) ...@@ -140,6 +140,7 @@ void LLSidepanelAppearance::onOpen(const LLSD& key)
{ {
fetchInventory(); fetchInventory();
refreshCurrentOutfitName(); refreshCurrentOutfitName();
updateVerbs();
if(key.size() == 0) if(key.size() == 0)
return; return;
......
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