Don't log tag info when no sub - thx Jamakmake :)

This commit is contained in:
Nikolaj Olsson 2020-12-29 13:00:43 +01:00
parent 83f39a7f65
commit 92a36c906f

View File

@ -17909,15 +17909,15 @@ namespace Nikse.SubtitleEdit.Forms
{
if (selectedLines)
{
var indices = SubtitleListview1.GetSelectedIndices();
if (indices.Length == 0)
{
return;
}
SubtitleListview1.SelectedIndexChanged -= SubtitleListview1_SelectedIndexChanged;
MakeHistoryForUndo(string.Format(_language.BeforeAddingTagX, tag));
var indices = new List<int>();
foreach (ListViewItem item in SubtitleListview1.SelectedItems)
{
indices.Add(item.Index);
}
bool first = true;
SubtitleListview1.BeginUpdate();
foreach (int i in indices)