diff options
author | sr55 <[email protected]> | 2008-03-07 00:07:31 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2008-03-07 00:07:31 +0000 |
commit | 8cf6e82be22656e77e8c4a723b1507a187fa924b (patch) | |
tree | f6799084d503c3c5ec1b8626dc4403316d5b72c0 /win/C#/Functions | |
parent | 4e3cd7cbe7ef4caabc1e324d5fb27848a73b7e80 (diff) |
WinGui:
- Fixed small localization issue in the query parser in regard to -q option.
- Changed update checker so if it fails on the startup update scan, it'll fail silently instead of displaying an error message behind the startup screen.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1332 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Functions')
-rw-r--r-- | win/C#/Functions/Common.cs | 5 | ||||
-rw-r--r-- | win/C#/Functions/QueryParser.cs | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/win/C#/Functions/Common.cs b/win/C#/Functions/Common.cs index 244eb142e..9b00fdc00 100644 --- a/win/C#/Functions/Common.cs +++ b/win/C#/Functions/Common.cs @@ -19,7 +19,7 @@ namespace Handbrake.Functions /*
* Checks for updates and returns "true" boolean if one exists.
*/
- public Boolean updateCheck()
+ public Boolean updateCheck(Boolean debug)
{
try
{
@@ -42,7 +42,8 @@ namespace Handbrake.Functions }
catch (Exception exc)
{
- MessageBox.Show(exc.ToString());
+ if (debug == true)
+ MessageBox.Show("Unable to check for updates, Please try again later. \n" + exc.ToString(),"Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
return false;
}
}
diff --git a/win/C#/Functions/QueryParser.cs b/win/C#/Functions/QueryParser.cs index be3ac7424..d83c1dc1d 100644 --- a/win/C#/Functions/QueryParser.cs +++ b/win/C#/Functions/QueryParser.cs @@ -812,7 +812,7 @@ namespace Handbrake.Functions double qConvert = 0;
if (videoQuality.Success != false)
{
- qConvert = double.Parse(videoQuality.ToString().Replace("-q ", "")) * 100;
+ qConvert = double.Parse(videoQuality.ToString().Replace("-q ", ""), Functions.CLI.Culture) * 100;
qConvert = System.Math.Ceiling(qConvert);
thisQuery.q_videoQuality = int.Parse(qConvert.ToString());
}
|