Fix for nulling time code after load of sub from mkv

This commit is contained in:
Nikolaj Olsson 2024-10-06 18:06:25 +02:00
parent 00e931cd22
commit 312915879f

View File

@ -15235,6 +15235,7 @@ namespace Nikse.SubtitleEdit.Forms
SubtitleListview1.HideColumn(SubtitleListView.SubtitleColumn.Extra);
}
_subtitleListViewIndex = -1;
comboBoxSubtitleFormats.SelectedIndexChanged -= ComboBoxSubtitleFormatsSelectedIndexChanged;
SetCurrentFormat(format);
comboBoxSubtitleFormats.SelectedIndexChanged += ComboBoxSubtitleFormatsSelectedIndexChanged;
@ -15256,10 +15257,11 @@ namespace Nikse.SubtitleEdit.Forms
return true;
}
_subtitleListViewIndex = -1;
UpdateSourceView();
SubtitleListview1.Fill(_subtitle, _subtitleOriginal);
_subtitleListViewIndex = -1;
SubtitleListview1.SelectIndexAndEnsureVisible(0, true);
RefreshSelectedParagraph();
return true;
}