]> granicus.if.org Git - handbrake/commitdiff
WinGui: (0.9.x) Fix an issue with Autonaming destination file with multi-dot extensions
authorsr55 <sr55.hb@outlook.com>
Sat, 10 Mar 2012 16:14:45 +0000 (16:14 +0000)
committersr55 <sr55.hb@outlook.com>
Sat, 10 Mar 2012 16:14:45 +0000 (16:14 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/branches/0.9.x@4501 b64f7644-9d1e-0410-96f1-a4d463321fa5

win/CS/Functions/Main.cs
win/CS/frmMain.cs

index 42b1034981366c7703333443e17708f226599f32..709f43ae909c32ce7356a749b78809f795367949 100644 (file)
@@ -179,7 +179,6 @@ namespace Handbrake.Functions
             {\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
index 475b420197204c532c12452036034fa1920cdd5e..a142b5d76b98f6dd129626f917674fa2ea5a121c 100644 (file)
@@ -98,7 +98,7 @@ namespace Handbrake
 \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