Fix nullptr crash in LLLandmarksPanel::isActionEnabled

master
Rye Mutt 2024-07-22 11:00:37 -04:00 committed by Andrey Kleshchev
parent 8de48c4260
commit cc77728ad7
1 changed files with 8 additions and 0 deletions

View File

@ -647,10 +647,18 @@ bool LLLandmarksPanel::isActionEnabled(const LLSD& userdata) const
if ("collapse_all" == command_name)
{
if (!mCurrentSelectedList)
{
return false;
}
return has_expanded_folders(mCurrentSelectedList->getRootFolder());
}
else if ("expand_all" == command_name)
{
if (!mCurrentSelectedList)
{
return false;
}
return has_collapsed_folders(mCurrentSelectedList->getRootFolder());
}
else if ("sort_by_date" == command_name)