Fix so that when uploading content, the inventory won't switch away from the "Recent Items" tab.

meow-7.2.2
Testy 2020-02-20 19:33:51 -04:00
parent cc46806311
commit 0e2dc856e7
1 changed files with 6 additions and 1 deletions

View File

@ -822,7 +822,12 @@ void LLViewerAssetUpload::AssetInventoryUploadCoproc(LLCoreHttpUtil::HttpCorouti
sidepanel_inventory->showInventoryPanel();
}
// </FS:Ansariel>
LLInventoryPanel::openInventoryPanelAndSetSelection(TRUE, serverInventoryItem, TRUE, TAKE_FOCUS_NO, (panel == NULL));
// <FS:Testy> FIRE-22943: Don't switch away from the "Recent Items" tab.
//LLInventoryPanel::openInventoryPanelAndSetSelection(TRUE, serverInventoryItem, TRUE, TAKE_FOCUS_NO, (panel == NULL));
BOOL show_main_panel = (!panel || panel->getName() != "Recent Items");
LLInventoryPanel::openInventoryPanelAndSetSelection(TRUE, serverInventoryItem, show_main_panel, TAKE_FOCUS_NO, (panel == NULL));
// </FS:Testy>
// restore keyboard focus
gFocusMgr.setKeyboardFocus(focus);