SL-19738 don't switch the view when creating an item

meow-7.2.2
Maxim Nikolenko 2023-05-19 18:09:35 +03:00
parent 100ace48f1
commit d53c8a7d65
1 changed files with 7 additions and 1 deletions

View File

@ -1834,7 +1834,13 @@ void LLInventoryPanel::openInventoryPanelAndSetSelection(BOOL auto_open, const L
if (main_inventory && main_inventory->isSingleFolderMode()
&& use_main_panel)
{
main_inventory->toggleViewMode();
const LLInventoryObject *obj = gInventory.getObject(obj_id);
if (obj)
{
main_inventory->setSingleFolderViewRoot(obj->getParentUUID(), false);
main_inventory->setGallerySelection(obj_id);
return;
}
}
LLInventoryPanel *active_panel = LLInventoryPanel::getActiveInventoryPanel(auto_open);