parent
5bf9d387b4
commit
6d40c08c3c
|
@ -267,7 +267,11 @@ namespace BizHawk.Client.EmuHawk
|
|||
|
||||
if (_selectedItems.Max(s => s.RowIndex) >= _rowCount)
|
||||
{
|
||||
#if NETFRAMEWORK
|
||||
_selectedItems.RemoveAll(i => i.RowIndex >= _rowCount);
|
||||
#else
|
||||
_selectedItems.RemoveWhere(i => i.RowIndex >= _rowCount);
|
||||
#endif
|
||||
}
|
||||
|
||||
RecalculateScrollBars();
|
||||
|
|
|
@ -247,7 +247,7 @@ namespace BizHawk.Common.CollectionExtensions
|
|||
else
|
||||
{
|
||||
foreach (var item in list.Where(item => match(item)) // can't simply cast to Func<T, bool>
|
||||
.ToList()) // very important
|
||||
.ToArray()) // very important
|
||||
{
|
||||
list.Remove(item);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue