#3440 Crash at updateCombinationVisibility

meow-7.2.2
Andrey Kleshchev 2025-01-20 22:04:13 +02:00 committed by Andrey Kleshchev
parent fa963b6b15
commit 74cdfcefa0
1 changed files with 7 additions and 3 deletions

View File

@ -2425,10 +2425,14 @@ void LLPanelMainInventory::updateCombinationVisibility()
mCombinationGalleryLayoutPanel->setVisible(!is_gallery_empty);
mCombinationListLayoutPanel->setVisible(show_inv_pane);
mCombinationInventoryPanel->getRootFolder()->setForceArrange(!show_inv_pane);
if(mCombinationInventoryPanel->hasVisibleItems())
LLFolderView* root_folder = mCombinationInventoryPanel->getRootFolder();
if (root_folder)
{
mForceShowInvLayout = false;
root_folder->setForceArrange(!show_inv_pane);
if (mCombinationInventoryPanel->hasVisibleItems())
{
mForceShowInvLayout = false;
}
}
if(is_gallery_empty)
{