summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.ApplicationServices/Services/PresetService.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2011-05-21 19:38:40 +0000
committersr55 <[email protected]>2011-05-21 19:38:40 +0000
commitfb7bb978eaca70d39b18d555970ee33496e73a8b (patch)
treef80338086957e17324d1277d9d068aee061d4210 /win/CS/HandBrake.ApplicationServices/Services/PresetService.cs
parent7e9628855789c421849a24de4a4f46b7bb3b621d (diff)
WinGui:
- Small tweak to the preset service which might fix the preset loading issue when upgrading to a new version. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3989 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices/Services/PresetService.cs')
-rw-r--r--win/CS/HandBrake.ApplicationServices/Services/PresetService.cs9
1 files changed, 7 insertions, 2 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Services/PresetService.cs b/win/CS/HandBrake.ApplicationServices/Services/PresetService.cs
index bd125c084..227a6eef6 100644
--- a/win/CS/HandBrake.ApplicationServices/Services/PresetService.cs
+++ b/win/CS/HandBrake.ApplicationServices/Services/PresetService.cs
@@ -60,7 +60,12 @@ namespace HandBrake.ApplicationServices.Services
/// </summary>
public PresetService()
{
- // this.Presets = CollectionViewSource.GetDefaultView(this.presets);
+ // If the preset file doesn't exist. Create it.
+ if (!File.Exists(this.builtInPresetFile))
+ {
+ this.UpdateBuiltInPresets(string.Empty);
+ }
+
this.LoadPresets();
}
@@ -371,7 +376,7 @@ namespace HandBrake.ApplicationServices.Services
}
reader.Close();
- }
+ }
}
catch (Exception exc)
{