summaryrefslogtreecommitdiffstats
path: root/win/C#/Functions
diff options
context:
space:
mode:
authorsr55 <[email protected]>2010-04-28 18:03:01 +0000
committersr55 <[email protected]>2010-04-28 18:03:01 +0000
commit4c0d4df9984e520961b467fde1ab1c2ee7513a67 (patch)
treef3dd31bf7e398e85593ec4209ba20e787e38241c /win/C#/Functions
parent6223188aa629e3ea5bc183c9da8eca4f5b24b19d (diff)
WinGui:
- Strip any illegal characters from the autoname path - Display build number in program window title. Also added a hack to force this to display the correct number. - Imported some settings for Stylecop for resharper 5 git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3272 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Functions')
-rw-r--r--win/C#/Functions/Main.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/win/C#/Functions/Main.cs b/win/C#/Functions/Main.cs
index e9e36d1a2..cb82a4bad 100644
--- a/win/C#/Functions/Main.cs
+++ b/win/C#/Functions/Main.cs
@@ -215,6 +215,14 @@ namespace Handbrake.Functions
}
}
+ foreach (char character in Path.GetInvalidFileNameChars())
+ {
+ if (autoNamePath != null)
+ {
+ autoNamePath = autoNamePath.Replace(character.ToString(), string.Empty);
+ }
+ }
+
return autoNamePath;
}
@@ -306,7 +314,7 @@ namespace Handbrake.Functions
MessageBox.Show(
"It appears you are trying to use a CLI executable that is too old for this version of the HandBrake GUI.\n" +
"Please update the HandBrakeCLI.exe to a newer build.\n\n" +
- "HandBrake Detected: " + Properties.Settings.Default.hb_version,
+ "HandBrake build Detected: " + Properties.Settings.Default.hb_version,
"Error",
MessageBoxButtons.OK,
MessageBoxIcon.Error);