mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 11:12:36 +01:00
Merge pull request #1411 from ivandrofly/patch-714
[Fix] - Fix 'Button Ok' (src/Forms/ChangeFrameRate.cs)
This commit is contained in:
commit
7946b55718
@ -71,15 +71,16 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
|
||||
private void ButtonOkClick(object sender, EventArgs e)
|
||||
{
|
||||
double d;
|
||||
if (double.TryParse(comboBoxFrameRateFrom.Text, out d) &&
|
||||
double.TryParse(comboBoxFrameRateTo.Text, out d))
|
||||
{
|
||||
DialogResult = DialogResult.OK;
|
||||
}
|
||||
else if (comboBoxFrameRateFrom.Text.Trim() == comboBoxFrameRateTo.Text.Trim())
|
||||
if (comboBoxFrameRateFrom.Text.Trim() == comboBoxFrameRateTo.Text.Trim())
|
||||
{
|
||||
MessageBox.Show(Configuration.Settings.Language.ChangeFrameRate.FrameRateNotChanged);
|
||||
return;
|
||||
}
|
||||
|
||||
double d;
|
||||
if (double.TryParse(comboBoxFrameRateFrom.Text, out d) && double.TryParse(comboBoxFrameRateTo.Text, out d))
|
||||
{
|
||||
DialogResult = DialogResult.OK;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user