Fix recent items panel doesn't filter empty folders until filter floater has been opened at least once

Ansariel 2015-01-16 10:52:38 +01:00
parent 34fd597f7c
commit 5416cea23c
1 changed files with 5 additions and 0 deletions

View File

@ -271,6 +271,11 @@ BOOL LLPanelMainInventory::postBuild()
//recent_items_panel->getFilter().fromParams(p);
recent_items_panel->getFilter().fromParams(p.filter);
// </FS:Ansariel>
// </FS:Ansariel> Recent items panel doesn't filter empty folders until filter floater has been opened
LLInventoryFilter& recent_filter = recent_items_panel->getFilter();
recent_filter.setFilterObjectTypes(recent_filter.getFilterObjectTypes() & ~(0x1 << LLInventoryType::IT_CATEGORY));
// </FS:Ansariel>
}
}
}