Skip to content
Snippets Groups Projects
Commit b6c93cf5 authored by Brad Payne (Vir Linden)'s avatar Brad Payne (Vir Linden)
Browse files

For EXT-2584: Select and rename new folder when creating new outfit; currently...

For EXT-2584: Select and rename new folder when creating new outfit; currently works for new outfit created in side panel, but not in appearance editor

--HG--
branch : avatar-pipeline
parent c812c616
No related branches found
No related tags found
No related merge requests found
...@@ -144,17 +144,20 @@ void LLPanelOutfitsInventory::onNew() ...@@ -144,17 +144,20 @@ 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(); updateListCommands();
updateParent(); updateParent();
if (getRootFolder()->needsAutoRename())
{
getRootFolder()->startRenamingSelectedItem();
getRootFolder()->setNeedsAutoRename(FALSE);
}
} }
void LLPanelOutfitsInventory::onSelectorButtonClicked() void LLPanelOutfitsInventory::onSelectorButtonClicked()
......
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