EXT-4088 FIXED (INFRASTRUCTURE) Change LLFolderView::getSelectionList to return a selection
Fixed issue where mCurrentSelectedList was being used before NULL check.meow-7.2.2
parent
a5f365c331
commit
d9f519d55c
|
|
@ -993,10 +993,13 @@ bool LLLandmarksPanel::isActionEnabled(const LLSD& userdata) const
|
|||
}
|
||||
else if("create_pick" == command_name)
|
||||
{
|
||||
std::set<LLUUID> selection = mCurrentSelectedList->getRootFolder()->getSelectionList();
|
||||
if ( mCurrentSelectedList && !selection.empty() )
|
||||
if (mCurrentSelectedList)
|
||||
{
|
||||
return ( 1 == selection.size() && !LLAgentPicksInfo::getInstance()->isPickLimitReached() );
|
||||
std::set<LLUUID> selection = mCurrentSelectedList->getRootFolder()->getSelectionList();
|
||||
if (!selection.empty())
|
||||
{
|
||||
return ( 1 == selection.size() && !LLAgentPicksInfo::getInstance()->isPickLimitReached() );
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue