mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-27 22:42:38 +01:00
Fix crash after add new profile + reset - thx Jamakmake :)
This commit is contained in:
parent
980b2be0b6
commit
219c9f613e
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user