From bdce25b2ca6f8c930e53cffee0cb7fe0b59d113c Mon Sep 17 00:00:00 2001 From: ivandrofly Date: Sun, 8 Nov 2015 10:20:10 +0000 Subject: [PATCH] [Fix] - Fix 'Button Ok' (src/Forms/ChangeFrameRate.cs) --- src/Forms/ChangeFrameRate.cs | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/Forms/ChangeFrameRate.cs b/src/Forms/ChangeFrameRate.cs index 28b4845fd..62c2493b3 100644 --- a/src/Forms/ChangeFrameRate.cs +++ b/src/Forms/ChangeFrameRate.cs @@ -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 {