[internal] - do restore only if deSelectedFixes contain 1 or more items

This commit is contained in:
ivandrofly 2015-08-25 06:25:01 +01:00
parent 514b2f89a4
commit 1aa890de03

View File

@ -4799,10 +4799,13 @@ namespace Nikse.SubtitleEdit.Forms
Next();
// restore de-selected fixes
foreach (ListViewItem item in listViewFixes.Items)
if (deSelectedFixes.Count > 0)
{
if (deSelectedFixes.Contains(item.SubItems[1].Text + item.SubItems[2].Text + item.SubItems[3].Text))
item.Checked = false;
foreach (ListViewItem item in listViewFixes.Items)
{
if (deSelectedFixes.Contains(item.SubItems[1].Text + item.SubItems[2].Text + item.SubItems[3].Text))
item.Checked = false;
}
}
}
}