summaryrefslogtreecommitdiff
path: root/indra/newview/llpanelmaininventory.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-06-02 02:47:46 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-06-02 02:47:46 +0300
commitc813a322fb89e94f3666cea3ff16b69127f3dcc1 (patch)
tree5969223af8d714fa78f1b8b02d071f99a6875e5f /indra/newview/llpanelmaininventory.cpp
parent87d24252df91284eb0cd9ab2f08b376ded05554c (diff)
SL-19796 Fix inventory autoscroll and autoraneme
Diffstat (limited to 'indra/newview/llpanelmaininventory.cpp')
-rw-r--r--indra/newview/llpanelmaininventory.cpp9
1 files changed, 7 insertions, 2 deletions
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<void(const LLUUID&)> 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