#4679 Logging for crash on updateMenuOptions

Logs say that viewer closed settings picker and immediately crashed
Yet callstack indicates that some inventory was right clicked, which
shouldn't be possible if picker already closed.
May be some click is closing the picker and opens menu at the same time,
but it's better to gather information first.
master
Andrey Kleshchev 2025-09-19 01:00:43 +03:00
parent 95725f709d
commit e918d240fd
2 changed files with 6 additions and 1 deletions

View File

@ -1510,6 +1510,7 @@ bool LLFolderView::handleRightMouseDown( S32 x, S32 y, MASK mask )
&& ( count > 0 && (hasVisibleChildren()) ))) && // show menu only if selected items are visible
!hide_folder_menu)
{
LL_INFOS("Inventory") << "Opening inventory menu from path: " << getPathname() << LL_ENDL;
if (mCallbackRegistrar)
{
mCallbackRegistrar->pushScope();

View File

@ -152,7 +152,11 @@ void LLFloaterSettingsPicker::onClose(bool app_quitting)
owner->setFocus(true);
}
mSettingItemID.setNull();
mInventoryPanel->getRootFolder()->clearSelection();
mInventoryPanel->clearSelection();
if (mInventoryPanel->getRootFolder())
{
mInventoryPanel->getRootFolder()->clearSelection();
}
}
void LLFloaterSettingsPicker::setValue(const LLSD& value)