mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 03:02:35 +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));
|
File.WriteAllText(assaTempFileName, format.ToText(_assaSubtitle, null));
|
||||||
|
|
||||||
groupBoxSettings.Enabled = false;
|
groupBoxSettings.Enabled = false;
|
||||||
progressBar1.Maximum = (int)_videoInfo.TotalFrames;
|
|
||||||
progressBar1.Visible = true;
|
|
||||||
labelPleaseWait.Visible = true;
|
labelPleaseWait.Visible = true;
|
||||||
|
if (_videoInfo.TotalFrames > 0)
|
||||||
|
{
|
||||||
|
progressBar1.Maximum = (int)_videoInfo.TotalFrames;
|
||||||
|
progressBar1.Visible = true;
|
||||||
|
}
|
||||||
|
|
||||||
if (checkBoxTargetFileSize.Checked)
|
if (checkBoxTargetFileSize.Checked)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user