mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-25 04:33:04 +01:00
Do not crash on missing total frames - thx SarahElGayyar :)
Related to #5613
This commit is contained in:
parent
d567266289
commit
4be49e560b
@ -234,9 +234,12 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
File.WriteAllText(assaTempFileName, format.ToText(_assaSubtitle, null));
|
||||
|
||||
groupBoxSettings.Enabled = false;
|
||||
labelPleaseWait.Visible = true;
|
||||
if (_videoInfo.TotalFrames > 0)
|
||||
{
|
||||
progressBar1.Maximum = (int)_videoInfo.TotalFrames;
|
||||
progressBar1.Visible = true;
|
||||
labelPleaseWait.Visible = true;
|
||||
}
|
||||
|
||||
if (checkBoxTargetFileSize.Checked)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user