Fix "Join" with append issues - thx Henrique :)

Do not auto-sort when adding files in append mode
This commit is contained in:
Nikolaj Olsson 2020-03-21 10:09:45 +01:00
parent a76e20f721
commit 94d12b0c54

View File

@ -176,6 +176,9 @@ namespace Nikse.SubtitleEdit.Forms
}
JoinedFormat = lastFormat;
if (!radioButtonJoinAddTime.Checked)
{
for (int outer = 0; outer < subtitles.Count; outer++)
{
for (int inner = 1; inner < subtitles.Count; inner++)
@ -194,6 +197,7 @@ namespace Nikse.SubtitleEdit.Forms
}
}
}
}
listViewParts.BeginUpdate();
listViewParts.Items.Clear();
@ -338,6 +342,7 @@ namespace Nikse.SubtitleEdit.Forms
{
numericUpDownAddMs.Enabled = radioButtonJoinAddTime.Checked;
labelAddTime.Enabled = radioButtonJoinAddTime.Checked;
SortAndLoad();
}
}
}