diff options
| author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2025-01-20 22:04:13 +0200 | 
|---|---|---|
| committer | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2025-01-21 00:34:33 +0200 | 
| commit | 74cdfcefa03021d04539750683e555d2cf5d5e66 (patch) | |
| tree | 3046e3b7e303d07e6ffcaa0589e757da8ed66d91 /indra/newview | |
| parent | fa963b6b15187739b808f16d42086e64aeebbacc (diff) | |
#3440 Crash at updateCombinationVisibility
Diffstat (limited to 'indra/newview')
| -rw-r--r-- | indra/newview/llpanelmaininventory.cpp | 10 | 
1 files changed, 7 insertions, 3 deletions
| diff --git a/indra/newview/llpanelmaininventory.cpp b/indra/newview/llpanelmaininventory.cpp index 377af4384a..a5b4db0580 100644 --- a/indra/newview/llpanelmaininventory.cpp +++ b/indra/newview/llpanelmaininventory.cpp @@ -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)          { | 
