summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF
diff options
context:
space:
mode:
authorsr55 <[email protected]>2012-06-30 17:49:29 +0000
committersr55 <[email protected]>2012-06-30 17:49:29 +0000
commit1ef2204a14628484f9ce70bfcccabb15a2973e88 (patch)
tree30dc58e46e14524ebfbf5c98f3b87bc7d65a2010 /win/CS/HandBrakeWPF
parent02b77f3bc692e0d059c29ea907393fda31a3790b (diff)
WinGui: Fix an issue where the Autoname would keep the existing file extension. (leading to .mkv.m4v for example)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4801 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF')
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
index 7596919eb..123e32fc0 100644
--- a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
+++ b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
@@ -471,7 +471,7 @@ namespace HandBrakeWPF.ViewModels
// The title that is selected has a source name. This means it's part of a batch scan.
if (selectedTitle != null && !string.IsNullOrEmpty(selectedTitle.SourceName))
{
- return Path.GetFileName(selectedTitle.SourceName);
+ return Path.GetFileNameWithoutExtension(selectedTitle.SourceName);
}
// Check if we have a Folder, if so, check if it's a DVD / Bluray drive and get the label.