mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-21 18:52:36 +01:00
parent
172b47cdcb
commit
7c9c32c5dc
@ -1380,8 +1380,14 @@ namespace Nikse.SubtitleEdit.Forms.Translate
|
||||
|
||||
private static void SyncListViews(ListView listViewSelected, SubtitleListView listViewOther)
|
||||
{
|
||||
if (listViewSelected.SelectedItems.Count > 0)
|
||||
if (listViewSelected == null ||
|
||||
listViewOther == null ||
|
||||
listViewSelected.SelectedItems.Count == 0 ||
|
||||
listViewSelected.TopItem == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var first = listViewSelected.TopItem.Index;
|
||||
var index = listViewSelected.SelectedItems[0].Index;
|
||||
if (index < listViewOther.Items.Count)
|
||||
@ -1393,7 +1399,6 @@ namespace Nikse.SubtitleEdit.Forms.Translate
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void subtitleListViewSource_DoubleClick(object sender, EventArgs e)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user