summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs
diff options
context:
space:
mode:
Diffstat (limited to 'win/CS/HandBrakeWPF/Services/Presets/PresetService.cs')
-rw-r--r--win/CS/HandBrakeWPF/Services/Presets/PresetService.cs9
1 files changed, 5 insertions, 4 deletions
diff --git a/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs b/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs
index 6e6935f00..9b470cb06 100644
--- a/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs
+++ b/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs
@@ -151,11 +151,12 @@ namespace HandBrakeWPF.Services.Presets
}
// HBPreset Handling
- IList<HBPreset> hbPresets = container.PresetList as IList<HBPreset>;
- if (hbPresets != null)
+ if (container.PresetList != null)
{
- foreach (var hbPreset in hbPresets)
+ foreach (var objectPreset in container.PresetList)
{
+ HBPreset hbPreset = JsonConvert.DeserializeObject<HBPreset>(objectPreset.ToString());
+
Preset preset = null;
try
{
@@ -180,7 +181,7 @@ namespace HandBrakeWPF.Services.Presets
return;
}
- if (this.CheckIfPresetExists(preset.Name))
+ if (this.CheckIfPresetExists(preset.Name))
{
if (!this.CanUpdatePreset(preset.Name))
{