Merge pull request #4381 from OmrSi/improve-merge-dialog

Make "Merge dialog" work when one line is selected
This commit is contained in:
Nikolaj Olsson 2020-09-22 12:31:51 +02:00 committed by GitHub
commit b85ece0767
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16403,7 +16403,7 @@ namespace Nikse.SubtitleEdit.Forms
private void MergeDialogs()
{
if (SubtitleListview1.SelectedItems.Count == 2 && SubtitleListview1.SelectedIndices[0] + 1 == SubtitleListview1.SelectedIndices[1])
if (SubtitleListview1.SelectedItems.Count == 1 || SubtitleListview1.SelectedItems.Count == 2 && SubtitleListview1.SelectedIndices[0] + 1 == SubtitleListview1.SelectedIndices[1])
{
MergeWithLineAfter(true);
}