summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2012-09-11 19:27:40 +0000
committersr55 <[email protected]>2012-09-11 19:27:40 +0000
commit3c3ac7ad93a7b644a327ac8027a4593395b0ba24 (patch)
tree331d3102c1b4c4af107c583dd2b01cb343045835 /win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
parentc89447522c74531483eb3c4b80749c2819845bee (diff)
WinGui: Couple fixes to Pictures settings and add presets.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4959 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs')
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
index e62abf174..86c8d3a14 100644
--- a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
+++ b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
@@ -12,6 +12,7 @@ namespace HandBrakeWPF.ViewModels
using System;
using System.Collections.Generic;
using System.Diagnostics;
+ using System.Globalization;
using System.IO;
using System.Linq;
using System.Windows;
@@ -1412,7 +1413,8 @@ namespace HandBrakeWPF.ViewModels
/// </summary>
public void PresetExport()
{
- VistaSaveFileDialog savefiledialog = new VistaSaveFileDialog { Filter = "plist|*.plist", CheckPathExists = true };
+ VistaSaveFileDialog savefiledialog = new VistaSaveFileDialog
+ { Filter = "plist|*.plist", CheckPathExists = true, AddExtension = true };
if (this.selectedPreset != null)
{
savefiledialog.ShowDialog();
@@ -1420,7 +1422,7 @@ namespace HandBrakeWPF.ViewModels
if (filename != null)
{
- PlistUtility.Export(savefiledialog.FileName, this.selectedPreset, userSettingService.GetUserSetting<int>(ASUserSettingConstants.HandBrakeBuild).ToString());
+ PlistUtility.Export(savefiledialog.FileName, this.selectedPreset, userSettingService.GetUserSetting<int>(ASUserSettingConstants.HandBrakeBuild).ToString(CultureInfo.InvariantCulture));
}
}
else