mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-27 22:42:38 +01:00
Don't log tag info when no sub - thx Jamakmake :)
This commit is contained in:
parent
83f39a7f65
commit
92a36c906f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user