From c813a322fb89e94f3666cea3ff16b69127f3dcc1 Mon Sep 17 00:00:00 2001 From: Andrey Kleshchev Date: Fri, 2 Jun 2023 02:47:46 +0300 Subject: SL-19796 Fix inventory autoscroll and autoraneme --- indra/newview/llpanelmaininventory.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'indra/newview/llpanelmaininventory.cpp') diff --git a/indra/newview/llpanelmaininventory.cpp b/indra/newview/llpanelmaininventory.cpp index 2939bc2aaf..6a5b0eebed 100644 --- a/indra/newview/llpanelmaininventory.cpp +++ b/indra/newview/llpanelmaininventory.cpp @@ -517,8 +517,13 @@ void LLPanelMainInventory::doCreate(const LLSD& userdata) mForceShowInvLayout = true; } - LLFolderBridge* bridge = (LLFolderBridge*)current_folder->getViewModelItem(); - menu_create_inventory_item(getPanel(), bridge, userdata); + std::function callback_cat_created = [this](const LLUUID& new_category_id) + { + gInventory.notifyObservers(); + mCombinationInventoryPanel->setSelectionByID(new_category_id, TRUE); + mCombinationInventoryPanel->getRootFolder()->setNeedsAutoRename(TRUE); + }; + menu_create_inventory_item(NULL, getCurrentSFVRoot(), userdata, LLUUID::null, callback_cat_created); } } else -- cgit v1.2.3