summaryrefslogtreecommitdiff
path: root/indra/newview/llviewerinventory.cpp
diff options
context:
space:
mode:
authorMaxim Nikolenko <maximnproductengine@lindenlab.com>2023-04-18 21:27:25 +0300
committerMaxim Nikolenko <maximnproductengine@lindenlab.com>2023-04-18 21:27:25 +0300
commitce2aaab15912693d51383274dc1dfebb20c0b6a2 (patch)
tree9568d0a74c69aa7bf9448fb6e6897ffc5181b6f0 /indra/newview/llviewerinventory.cpp
parent5554686b9117901cddb3d36f237622442c1d7a8d (diff)
SL-19604 FIXED Creating new folders and items in gallery or combination views does not highlight created item
Diffstat (limited to 'indra/newview/llviewerinventory.cpp')
-rw-r--r--indra/newview/llviewerinventory.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/newview/llviewerinventory.cpp b/indra/newview/llviewerinventory.cpp
index 01ad4f0f09..8b0d14b3e9 100644
--- a/indra/newview/llviewerinventory.cpp
+++ b/indra/newview/llviewerinventory.cpp
@@ -1727,7 +1727,7 @@ void menu_create_inventory_item(LLInventoryPanel* panel, LLFolderBridge *bridge,
menu_create_inventory_item(panel, bridge ? bridge->getUUID() : LLUUID::null, userdata, default_parent_uuid);
}
-void menu_create_inventory_item(LLInventoryPanel* panel, LLUUID dest_id, const LLSD& userdata, const LLUUID& default_parent_uuid)
+void menu_create_inventory_item(LLInventoryPanel* panel, LLUUID dest_id, const LLSD& userdata, const LLUUID& default_parent_uuid, std::function<void(const LLUUID&)> folder_created_cb)
{
std::string type_name = userdata.asString();
@@ -1763,6 +1763,10 @@ void menu_create_inventory_item(LLInventoryPanel* panel, LLUUID dest_id, const L
}
};
}
+ else if(folder_created_cb != NULL)
+ {
+ callback_cat_created = folder_created_cb;
+ }
gInventory.createNewCategory(
parent_id,
preferred_type,