Fix crash after add new profile + reset - thx Jamakmake :)

This commit is contained in:
Nikolaj Olsson 2020-04-11 08:35:23 +02:00
parent 980b2be0b6
commit 219c9f613e

View File

@ -3176,7 +3176,7 @@ namespace Nikse.SubtitleEdit.Forms
private void ProfileUiValueChanged(object sender, EventArgs e)
{
var idx = comboBoxRulesProfileName.SelectedIndex;
if (idx < 0 || _editProfileOn)
if (idx < 0 || _editProfileOn || idx >= _rulesProfiles.Count)
{
return;
}