Merge pull request #5867 from OmrSi/backup-shortcut-patch

Fix some issues with backup shortcut
This commit is contained in:
Nikolaj Olsson 2022-03-27 08:23:15 +02:00 committed by GitHub
commit addb4cb20a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15929,9 +15929,9 @@ namespace Nikse.SubtitleEdit.Forms
}
}
if (_subtitleOriginal != null)
if (_subtitleOriginalFileName != null && _subtitleOriginal != null && _subtitleOriginal.Paragraphs.Count > 0)
{
SaveAutoBackup(_subtitle, saveFormat, _subtitleOriginal.ToText(saveFormat));
SaveAutoBackup(_subtitleOriginal, saveFormat, _subtitleOriginal.ToText(saveFormat));
}
e.SuppressKeyPress = true;