git-svn-id: svn://svn.handbrake.fr/HandBrake/branches/0.9.x@4501
b64f7644-9d1e-0410-96f1-
a4d463321fa5
{\r
// Get the Source Name and remove any invalid characters\r
string sourceName = Path.GetInvalidFileNameChars().Aggregate(mainWindow.SourceName, (current, character) => current.Replace(character.ToString(), string.Empty));\r
- sourceName = Path.GetFileNameWithoutExtension(sourceName);\r
\r
// Remove Underscores\r
if (UserSettingService.GetUserSetting<bool>(UserSettingConstants.AutoNameRemoveUnderscore))\r
\r
if (selectedTitle != null && !string.IsNullOrEmpty(selectedTitle.SourceName))\r
{\r
- return Path.GetFileName(selectedTitle.SourceName);\r
+ return Path.GetFileNameWithoutExtension(selectedTitle.SourceName);\r
}\r
\r
// We have a drive, selected as a folder.\r