Merge pull request #4961 from OmrSi/make-empty-from-current-patch

Don't Make Empty Translation when no subtitle is loaded
This commit is contained in:
Nikolaj Olsson 2021-04-06 08:27:06 +02:00 committed by GitHub
commit 0d5615b819
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25661,6 +25661,12 @@ namespace Nikse.SubtitleEdit.Forms
private void ToolStripMenuItemMakeEmptyFromCurrentClick(object sender, EventArgs e)
{
if (!IsSubtitleLoaded)
{
DisplaySubtitleNotLoadedMessage();
return;
}
if (ContinueNewOrExit())
{
bool isOriginalVisible = SubtitleListview1.IsOriginalTextColumnVisible;