diff options
author | Maxim Nikolenko <maximnproductengine@lindenlab.com> | 2023-02-24 03:05:30 +0200 |
---|---|---|
committer | Maxim Nikolenko <maximnproductengine@lindenlab.com> | 2023-02-24 03:17:53 +0200 |
commit | 49da5288bd0425241823186bfd56a159fe2f9a60 (patch) | |
tree | da412dafd1c9be961f254f825737b9e026706c6b /indra/newview/llpanelmaininventory.cpp | |
parent | a2c61cfe35cfe3edb6fcedc09e9529c9a2940ed0 (diff) |
SL-19234 add Inventory settings floater
Diffstat (limited to 'indra/newview/llpanelmaininventory.cpp')
-rw-r--r-- | indra/newview/llpanelmaininventory.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/indra/newview/llpanelmaininventory.cpp b/indra/newview/llpanelmaininventory.cpp index fa40f13d00..0fd4eb0c15 100644 --- a/indra/newview/llpanelmaininventory.cpp +++ b/indra/newview/llpanelmaininventory.cpp @@ -411,7 +411,7 @@ void LLPanelMainInventory::newWindow() } } -void LLPanelMainInventory::newFolderWindow(const LLUUID& folder_id) +void LLPanelMainInventory::newFolderWindow(LLUUID folder_id, LLUUID item_to_select) { S32 instance_num = get_instance_num(); @@ -428,6 +428,10 @@ void LLPanelMainInventory::newFolderWindow(const LLUUID& folder_id) if(folder_id.notNull()) { main_inventory->setSingleFolderViewRoot(folder_id); + if(item_to_select.notNull()) + { + sidepanel_inventory->getActivePanel()->setSelection(item_to_select, TAKE_FOCUS_YES); + } } } } @@ -1368,7 +1372,7 @@ void LLPanelMainInventory::onCustomAction(const LLSD& userdata) const std::string command_name = userdata.asString(); if (command_name == "new_single_folder_window") { - newFolderWindow(LLUUID()); + newFolderWindow(); } if ((command_name == "open_in_current_window") || (command_name == "open_in_new_window")) { |