[InvOpts] Folder View unordered opt pass

This commit is contained in:
Lirusaito
2019-03-22 02:10:43 -04:00
parent 5f1047c574
commit 9f23dcb0c4
8 changed files with 30 additions and 43 deletions

View File

@@ -1365,15 +1365,13 @@ bool LLInventoryPanel::isSelectionRemovable()
bool can_delete = false;
if (mFolderRoot.get())
{
std::set<LLUUID> selection_set = mFolderRoot.get()->getSelectionList();
auto selection_set = mFolderRoot.get()->getSelectionList();
if (!selection_set.empty())
{
can_delete = true;
for (std::set<LLUUID>::iterator iter = selection_set.begin();
iter != selection_set.end();
++iter)
for (const auto& id : selection_set)
{
LLFolderViewItem *item = getItemByID(*iter);
LLFolderViewItem *item = getItemByID(id);
const LLFolderViewEventListener* listener =item->getListener();
if (!listener)
{